0.0.4 • Published 6 years ago
hbobenicio-npm-publishing-example v0.0.4
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 gitnpm version patch
will do the same as above, but calculate the patching version of it- Republish it with
npm publish