allow-publish
v1.0.4
Published
Flip the private option in package.json and make the package publishable.
Downloads
12
Readme
Prevent Accidental NPM Publish
By disallowing publishing in your package.json and allowing it only in your CI build.
Usage
- Set
"private": truein your NPM package'spackage.json. You won't be able to publish your package to NPM without removing that. - Add the following steps to your CI build:
npm install allow-publish
$(npm bin)/allow-publish ./package.jsonPackages produced by npm pack on your build machine will be publishable now.
