I'm migrationg all my projects from angular 5 to angular 6. I have some projects that dependes on anothers.
I have a project, lets call ProjectA that dependes on ProjectB. I make a build for the ProjectB that results on a group of files on the folder dist.
Usually, when I want to test, I take the files from the folder dist from the ProjectB and put on ProjectA under the folder node_modules. Basiclly I'm making a "manual" instalation of the package ProjectB.
The problem on this scenario is that, when I make npm install, it will be install the latest version of ProjectB and the manual instalation of ProjectB will be losed.
What are my options for this scenario?
After some search I found out on this post that you can run the following command, and the npm will install local package build as a could package:
Important note:
Pay attention to your
package.config, because it will be change after installing on this way, for the package that you install using the absolute path folder.