npm.io
0.0.4 • Published 8 years ago

hbobenicio-npm-publishing-example

Licence
MIT
Version
0.0.4
Deps
0
Size
1 kB
Vulns
0
Weekly
0

hbobenicio-npm-publishing-example

Keep things out of your package

  • Run npm pack to check which files will be included
  • 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