publish-gauge
preview what npm will publish
Check what npm publish will actually ship before you publish: packs the tarball and verifies entry points, exports and bin targets exist and load, types resolve, no secrets or junk are included, and.
- 16/week on npm
- 2★
- MIT
- v1.0.2
- Developer Tooling
npx publish-gaugeRead the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)
publish-gauge
From the README
Most broken npm releases are caused by packaging, not code. main points at a dist/ folder that was never built. exports names a file that files leaves out. The .d.ts imports a sibling declaration that was not shipped, so users silently get any. The bin has no shebang. A .env file or an .npmrc with a token goes out to the whole world. publish-gauge runs npm pack, opens the real tarball, and checks it the way your users will consume it: every entry point must exist and load, types must resolve, and nothing that should stay private is included. Each problem comes with a file, a severity and a…
npx publish-gauge # in the package directory
npx publish-gauge --run-scripts # let prepack/prepare build dist/ first
npx publish-gauge --max-size 200kb --fail-on medium
npx publish-gauge --tarball my-lib-1.2.3.tgzRelated packages
Developer Tooling
- commit-gauge
lint Conventional Commits
- engines-gauge
align Node engine ranges
- hallume-cli
Hallume command-line tool
- monorepo-gauge
check workspace hygiene