Abandoned, as newer npm / yarn doesn't work will with plain copy pasta tarballs.
Has npm link or yarn link got you down? ππ
Does your linked package have troublesome "singleton" dependencies that begin to double-up, like react?
Maybe your code bundler trips up when traversing weird ol' symlinks?
Perhaps you're allergic to or straight up don't trust those `link` commands? π€·β
...
ππ¦ Well, give up now and try linkaroo. π¦ππ wink
npm i -g linkarooPaaaaack your package!
$ cd my-pkg && npm run build
$ linkaroo packLiiiiiink it up!
$ cd my-app
$ linkaroo link "[email protected]"Repeat steps 1 & 2 when my-pkg chaaaaanges.
π DONE π
π DONE π
Sponsored* by the Australian Government
*: It's not
Using npm/yarn link can be dissapointing in real life, because our node & bundlers get messed up traversing symlinks; they get stuck and find interdependant packages they were NOT suppose to... π‘
So let's just pretend to publish and install during local iterations.
That's what these two commands pretend to do:
- packwill prepare your package in a tarball (like publishing) and put it somewhere safe on your machine
- linkwill unpack that tarball into your other dependants- node_modules/directory (like a dirty lazy- npm install)
Thanks to the NPM team for making their CLI easy to use.
MIT