@putout/plugin-npmignore
v8.1.0
Published
🐊Putout plugin helps with .npmignore
Downloads
73,796
Maintainers
Readme
@putout/plugin-npmignore 
Use a
.npmignorefile to keep stuff out of your package. If there's no.npmignorefile, but there is a.gitignorefile, then npm will ignore the stuff matched by the.gitignorefile.(c) npmjs.com
🐊Putout plugin helps with .npmignore.
Install
npm i @putout/plugin-npmignore -DRules
- ✅ add;
- ✅ sort;
- ✅ convert-loc-to-lock;
Config
{
"rules": {
"npmignore/add": ["on", {
"dismiss": [
".nyc_output",
".putoutcache",
"*.swp",
"coverage",
"*.config.*"
]
}],
"npmignore/sort": "on",
"npmignore/convert-loc-to-lock": "on"
}
}add
Adds .* into .npmignore.
+.*
testsort
❌ Example of incorrect code
node_modules
*.swp
yarn-error.log
yarn.lock
.idea
.DS_Store
deno.lock
coverage
.filesystem.json✅ Example of correct code
.idea
.filesystem.json
.DS_Store
*.swp
yarn-error.log
yarn.lock
deno.lock
node_modules
coverage# sortconvert-loc-to-lock
Adds .* into .npmignore.
Checkout in 🐊Putout Editor.
-*.loc
+*.lockLicense
MIT
