NPM Relink
This package re-establishes symlinks after npm i
has run. This shortcoming of npm is a known issue that the npm team has been slow to fix, so here is a package to do it.
Installation
% npm install -g npm-relink
Usage
In your package.json
:
"scripts": {
"postinstall": "npm-relink"
}
Initialize from your project root:
% npm-relink init
% echo ".npm-relink.json" >> .gitignore