persistent-package-linker
v2.1.2
Published
persistent npm link behaviour
Downloads
11
Readme
Persistent package linker (ppl)
In npm@>=5
packages linked via npm link
are lost if npm install
is called, this package tries to fix that.
NOTE:
Doesn't work with npm@>=5.1 <5.8
because of a bug introduced in v5.1
, this bug has been fixed in v5.8.0
.
NOTE:
Requires npm@>=5.4
to work when installing local modules with their file path.
Installation
npm install -g persistent-package-linker
Usage
Link current package
ppl link
same as original npm link
(but some internal diffrences)
Link package
ppl link <package>
internally adds the package name to package-links.json
and calls npm link <package>
Link all saved packages
ppl link-file
Links all packages stored in the package-links.json
file.
package-links.json
Linked packages are stored in this file to be linked after each call to npm install
. This file can be put in .gitignore
Known issues
- relinks packages for all dependencies, not very efficient but works