linkaroo
Is npm link
or yarn link
not working for you?
- Does your linked package have singleton dependencies, like
react
? - Maybe your code bundler trips up on symlinks?
- Perhaps you're allergic to those commands?
Well, try linkaroo
.
Usage
First step: pack your package!
$ cd my-pkg
$ linkaroo pack
# Packing "my-pkg"... Packed!
#
#
# ^ Copied to clipboard. :)
#
Second step: "link" your pack! (:
$ cd my-app
$ linkaroo link "my-pkg" "/tmp/linkaroo/my-pkg-0.1.0.tgz"
# Linking "my-pkg"
#
#
Problem Background
To avoid problems while using npm link
during development of interdependent packages, we can pretend to publish
and install
while iterations continue.
That's what these two commands pretend to do:
pack
will prepare your package for publish, and put the resulting tarball somewhere safe locally.link
will unpack that tarball into your other dependants node_modules/
directory, just like npm install
does.
Legal
Thanks to the NPM team for making their CLI easy to use.
MIT