A command line tool to prevent accidental npm publish
for scoped packages.
This command is wrapper of npm publish
.
Just a simple tool:
- Check the validity of scoped packages?
- Run
npm publish
=> to your private registry!
npm install -g private-npm-publish
$ private-npm-publish
# == Check the package and `npm publish`
$ npm test
npm command doesn't provide global hook for npm publish
.
private-npm-publish use scoped-modules-checker module.
Workflow: Create npm package -> publish private.
# the safety way for creating scoped packages
npm login —registry=http://example.com —scope=@myorg
npm config set @myorg:registry: http://example.com
npm init mypackage —scope=myorg
# the safety way for publishing scoped packages
npm install -g private-npm-publish
private-npm-publish
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT