@putout/plugin-npmignore
v7.0.4
Published
🐊Putout plugin helps with .npmignore
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
Config
{
"rules": {
"npmignore/add": ["on", {
"dismiss": [
".nyc_output",
".putoutcache",
"*.swp",
"coverage",
"*.config.*"
]
}],
"npmignore/sort": "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# sortLicense
MIT
