Link your local paths as dependencies.
npm lets you do this too but unfortunately it breaks in certain cases.
npm i link-local-dependencies
In your package.json
-
Put your local dependencies in
"localDependencies"
-
Call
link-local-dependencies
in"postinstall"
script
{
"scripts": {
"postinstall": "link-local-dependencies"
},
"localDependencies": {
"root": "./root",
"home": "~",
}
}