Go to the directory containing the package you're writing (that you want to test by referencing in another project) and make sure to do an npm init on that directory (this creates the package.json file used by npm). Once you're done run npm link. Now go to the project you want to reference the package in and run npm link
That's it!
No comments:
Post a Comment