The process is not complicated and only involves 4 steps:
package.json, I need to make sure that I have all the required information filled:
version. When the package is first published, usually it should be version 1.0.0.
In order to publish package on npm, I had to first create an account on the website. Then log in from the command line with:
After successfully logging in, I can publish the package with:
npm publish --access public
I asked my friend for help to test the package I just published. She was able to install the package but when she tried to run it, she found a bug and noticed that
README.md was outdated. Following her feedbacks, I fixed the bug and updated
README.md with more instructions on how to use the tool.
When all the bug fixes were in place, I updated the version in
package.json with any related test cases, committed those changes and did a final
npm i mh-ssg