Exclude non-production files in the published package
Opened this issue · 0 comments
Deleted user commented
Is your feature request related to a problem? Please describe.
Currently, the published packages contain non-production files e.g. test files which is not optimal.
You can use npm publish --dry-run
to test it.
npm notice package size: 1.5 MB
npm notice unpacked size: 5.3 MB
npm notice shasum: 8db0918e89b65e23aba81c3047f3b83a3b700556
npm notice integrity: sha512-wbP+UrDG7zCXb[...]w98Xrt+sclRfw==
npm notice total files: 495
Describe the solution you'd like
A clear and concise description of what you want to happen.
- whitelist relavant files using https://docs.npmjs.com/cli/v7/configuring-npm/package-json#files
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
- blacklist irrelevant files using .npmignore
Additional context
Add any other context or screenshots about the feature request here.