We store all of the shared and common modules between the respage repos
After changes are made, you can build a package locally by running
npm pack
This command generates a new compressed file with the built library.
Now you just need to import the lib in the host project's package.json file using the absolute path to the file generated.
For example, in resmate you will replace the package version for the path, like this:
"@respage/common-lib": "/Users/username/respage/respage-common-lib/respage-common-lib-1.0.21.tgz",
Then run npm install to update the library in the host project (e.g. in resmate)
npm i @respage/common-lib
This will update node_modules with the new changes from the file generated by npm pack.
For this you need to generate the new version and publish it:
npm version <new-version-number>
npm publish
Remember you must be logged in to npm and be part of the organization in order to publish. You can check this by accessing respage's npm repository: https://www.npmjs.com/org/respage