0.0.4 • Published 6 years ago

hbobenicio-npm-publishing-example v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

hbobenicio-npm-publishing-example

Keep things out of your package

  • Run npm pack to check which files will be included

Use npm link to test your package

  • Inside another testing package, use npm link foo to link to the foo package. This will create a symlink, so you will not need to repack and readd that in order to test it. It's a way of live testing your package.

Publish it!

  • npm publish. Done.

What if your want to update it?

  • npm version VERSION will modify package.json version and commit the changes with git
  • npm version patch will do the same as above, but calculate the patching version of it
  • Republish it with npm publish

Useful Links