DEV Community

Discussion on: How to test your NPM package locally

Collapse
 
yoursunny profile image
Junxiao Shi

npm link cannot catch errors in package creation, such as missing a necessary file in package.json "files" property.
I test my packages with npm pack as tarball, or by publishing to a private Verdaccio registry.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Oh thanks for that one, wasn't aware of that option.
But definitely look into testing it like that as well ✨