1.0.4 • Published 10 years ago

allow-publish v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

Prevent Accidental NPM Publish

By disallowing publishing in your package.json and allowing it only in your CI build.

Usage

  1. Set "private": true in your NPM package's package.json. You won't be able to publish your package to NPM without removing that.
  2. Add the following steps to your CI build:
npm install allow-publish
$(npm bin)/allow-publish ./package.json

Packages produced by npm pack on your build machine will be publishable now.

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago