kachat-client
Publishing the package
In order to publish the package, make sure to login with the correct credentials first:
npm login
The next step would be to ensure a new version name in the package.json file. Once done, you can publish the package by running the following command:
npm publish
Finally, the published package with a specific version can be installed as follows:
npm install <package_name>@<package_version>
Testing a version
In order to test the code, pack the package using the following command from the main directory:
npm pack
This will create a .tgz file in the working directory. Install the created package in the project that's using it as follows:
npm i <name_of_the_created_package_tgz>