/assert-pkgs-private

Assert that all packages have {"private": true}

Primary LanguageJavaScript

assert-pkgs-private

Assert that all packages have {"private": true} so you can't accidentally publish private code.

stability-unstable Build Status

It'll find all package.json files in a directory that are not a subdirectory of node_modules and assert that they contain {"private": true}.

This is mostly useful for monorepos.

Install

To install

npm install orangemug/assert-pkgs-private

Usage

Via code

const assertPkgsPrivate = require('assert-pkgs-private');
assertPkgsPrivate(__dirname+"/path/to/test-dir");

License

MIT