stevenvachon / lerna-link-deps

Symlink all instances of a dependency within a Lerna multi-package-project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lerna-link-deps

Symlink all instances of a dependency within a Lerna multi-package project.

As an example of not using this library, you'd have to manually run npm link pkg for each of these:

  • /project/packages/A/node_modules/pkg
  • /project/packages/B/node_modules/pkg
  • /project/packages/C/node_modules/another-pkg/node_modules/pkg

Installation

Node.js >= 14 is required. Type this at the command line:

npm install -g lerna-link-deps

(Of course, it's recommended to not install globally and instead wrap your usage in npm scripts).

Usage

lerna-link-deps --pkgName=pkg --pkgDir=../pkg-repo
lerna-link-deps --help

About

Symlink all instances of a dependency within a Lerna multi-package-project.

License:MIT License


Languages

Language:JavaScript 100.0%