gitignore
gitignore copied to clipboard
more compatible node_modules ignore for npm publish
Reasons for making this change:
git will ignore node_modules directory in any nest directories whether we write node_modules/ or node_module.
However npm only ignore node_modules in subdirectories when we write node_modules in .gitignore if .npmignore is not exist.
# when we write `node_modules/` in .gitignore
npm publish
# upload node_modules/xx.js
npm notice aa/node_modules/xx.js
# when we write `node_modules` in .gitignore
npm publish
# will not upload aa/node_modules/xx.js
This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open :smile: