- Clone the repo locally
- Open terminal at the repository folder and execute
npm installinside the project folder.
- The project is configured with
webpackfor building the artefacts for both local execution & publish. - Refer
webpack.config.jsfor details. - Hence for any change, the project needs to be built before testing.
- Execute
npm run buildfor building the project
- As updated earlier, the code needs to be built before running.
- Execute
npm run startto build & run the CLI locally.
- Ensure the project is built & has no errors
- Ensure the
versioninpackage.jsonis updated as per the changes done compared to previous published version. - Execute
npm loginin the terminal & login as authorized user - Execute
npm publish --access publicto publish to npm registry.