I would like to test a new version of angular/cli and core, but I don't want to publish my modules every time. Instead of it I use npm link locally on my PC.
First of all, I would like to import my modules with npm link and not in package.json in the Client-Script. It should run without error - then I could change something in the modules.
Unfortunatelly I become 2 Errors:
- backbone, jquery and jointjs - libraries could not be found at node_modules/jointjs...
- If I add these libraries there, the build-process lasts a lot of time and gives nothing.
How do I use the npm link:
- I cloned all the repositories of the modules (10 Modules) separatelly in the WebStorm and run "npm install" there.
- I run the command "build:lib": "ng build module-name" and become a new folder in 'dist/module-name'
- Then I go in the terminal to the path: "cd dist/module-name" and run the command "npm link".
- I go back to my client and run there "npm link module-name ... of all 10 Modules together".
- There are 10 new folders under node_modules and I can use them as libraries.
Unfortunatelly I can not run the build-command like before, because It seems like not all the libraries from modules will be imported.
What do I do wrong?