0.0.4 • Published 7 years ago
hbobenicio-npm-publishing-example v0.0.4
hbobenicio-npm-publishing-example
Keep things out of your package
- Run
npm packto check which files will be included
Use npm link to test your package
- Inside another testing package, use
npm link footo 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 VERSIONwill modify package.json version and commit the changes with gitnpm version patchwill do the same as above, but calculate the patching version of it- Republish it with
npm publish