- get the code of the project from repository,
- make changes to package code if needed,
- run
npm adduser
to login to your npm account (create it if needed), - change
version
inpackage.json
, - run
npm run build
, - execute
npm publish --access public
to publish new version of the package.
- execute
npm link
in this package folder to create global link to local package version (only once), - execute
npm link @omniaz/vue-component-library
in other project (e.g. FMCG platform) to use local version of the package instead of remote one (every time, to test changes), - you may need to delete
package-lock.json
in other project and runnpm run dev
again to see changes.
- just run
npm install
ornpm update
in the other project to revert back to using package version from node_modules.