https://github.com/charmander/npm-pack-check
`npm pack` with missing file checks
https://github.com/charmander/npm-pack-check
nodejs package-json
Last synced: 2 months ago
JSON representation
`npm pack` with missing file checks
- Host: GitHub
- URL: https://github.com/charmander/npm-pack-check
- Owner: charmander
- Created: 2018-06-22T01:13:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T19:49:06.000Z (about 5 years ago)
- Last Synced: 2025-01-22T19:47:10.179Z (over 1 year ago)
- Topics: nodejs, package-json
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Like `npm pack`, but checks that all package.json `files` exist and tries to find `require`ments missing from `files`.
This shouldn’t be run on untrusted packages. `prepack` and `postpack` scripts can be avoided with `npm pack --ignore-scripts`, but it’s possible there are other ways to convince `npm pack` to do something unsafe.
```sh
npm() {
if [[ "$#" = 1 && pack = "$1" ]]; then
npm-pack-check
else
command npm "$@"
fi
}
```