There is an updated version of this article here:
Dependency Management for Angular Package Format Modules
We have setup an Angular Workspace containing two library projects: @fireflysemantics/forecasting…
We have setup an Angular Workspace containing two library projects:
Both are Angular Package Format libraries. The library
@fireflysemantics/optimization as a peer dependency.
Whenever we publish updates of
Verdaccio we want those updates to be available within the
We want to manage this using NPM Scripts.
For general instruction on how to create an Angular Package Format library see:
Creating an Angular NPM Installable Service Library
We need to publish a library to NPM for our peers. We will be using the Angular Package Format, which should be a good…
For instructions on how to setup Verdaccio see:
Installing and Testing Verdaccio
We want to use Verdaccio for our local NPM Packages.
Both libraries reside in a workspace called
fs-modules . Will create an
fs-module-dependencies package containing the
@fireflysemantics/optimization peer dependency project.
npm init -y
package.json to look like this:
"ig": "npm install -g @jsdevtools/version-bump-prompt",
"bp": "bump patch",
"p": "npm run bp && npm publish"
"author": "Ole Ersoy"
Anytime we want to publish an update to this project we run
npm run p .
Notice that the
ig ( Install Global ) script allows us to install the global package
@jsdevtools/version-bump-promt we are using for bumping the semantic version of the
Also notice that we have set the semantic version of
* . Doing this causes NPM to always look for the latest version when we install
@fireflysemantics/fs-module-dependencies to Verdaccio (
npm publish ).
Then go into the
fs-modules project an install it as a dependency.
npm i @fireflysemantics/fs-modules-dependencies
fs-modules add a script for installing
"i": "npm i @fireflysemantics/fs-modules-dependencies"
Now anytime we run
npm run i within the
fs-modules Angular Workspace, it will install the latest version of
@fireflysemantics/optimization since we set the semantic version of this depenency to