$ cnpm install @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.
npm i @putout/plugin-npmignore -D
{
"rules": {
"npmignore/add": ["on", {
"dismiss": [
".nyc_output",
".putoutcache",
"*.swp",
"coverage",
"*.config.*"
]
}],
"npmignore/sort": "on"
}
}
Adds .* into .npmignore.
+.*
test
node_modules
*.swp
yarn-error.log
yarn.lock
.idea
.DS_Store
deno.lock
coverage
.filesystem.json
.idea
.filesystem.json
.DS_Store
*.swp
yarn-error.log
yarn.lock
deno.lock
node_modules
coverage# sort
MIT
Copyright 2013 - present © cnpmjs.org | Home |