@mmorrissey5961/directlink
v1.0.0
Published
Install local packages without 'npm link'
Downloads
3
Maintainers
Readme
This is an experimental package used to locally install npm packages from your system instead of using npm link. With this package, nothing is installed globally. You create a 'directlinks' object in your package.json, which handles installing, updating, and removing.
This package essentially uninstalls and re-installs packages when you use the
--update flag. It also has the option to symlink entry points, but this
feature is highly unstable and will likely cause problems depending on your
package.
Warning
If you have symlinked entry points, dependency changes to your linked package will be silently ignored.
Usage
npm install --save-dev @mmorrissey5961/directlink"directlinks": {
"../../foo": []
}To symlink an entry point, add it to the entry points array.
"directlinks": {
"../../foo": ["index.js"]
}Install all packages in directlinks
npx directlink --updateRemove a linked package from directlinks
npx directlink --remove fooRemove all linked pakages in directlinks
npx directlink --clean