@singhgauravvapext/custommodules
v1.0.10
Published
1. Create an npm organization within your account (other option available, see npmjs.org). 2. Create a directory that contains common code. 3. Move to the newly created dir and run `npm init`. 4. Run `npm login` and follow the steps (if required). 5.
Downloads
6
Readme
Publish an npm package to efficient code sharing & reuse between services.
Steps:
- Create an npm organization within your account (other option available, see npmjs.org).
- Create a directory that contains common code.
- Move to the newly created dir and run
npm init
. - Run
npm login
and follow the steps (if required). - Initialize git repo & commit changes.
- Run
npm version patch
before publishing a new version. - Run
npm run build
to build the code. - Run
npm publish --access public
to publish. Before doing so, make sure adjustments have been made in package.json. - Run
npm update <package name>
to update the version wherever it is being used.