linkaroo
v0.2.0
Published
Like npm link, but "npm pack -> copy -> untar".
Downloads
14
Readme
linkaroooooooooooooooooooooooooooooooooooooooooooo
Install
npm i -g linkaroo
Usage
Step 1.
Paaaaack your package!
$ cd my-pkg && npm run build
$ linkaroo pack
Step 2.
Liiiiiink it up!
$ cd my-app
$ linkaroo link "my-pkg@1.0.0"
Step 3.
Repeat steps 1 & 2 when my-pkg
chaaaaanges.
Problem Background
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:
pack
will prepare your package in a tarball (like publishing) and put it somewhere safe on your machinelink
will unpack that tarball into your other dependantsnode_modules/
directory (like a dirty lazynpm install
)
Legal
Thanks to the NPM team for making their CLI easy to use.
MIT