check_circle
Recipe

Publish to NPM

Build the package

  1. Install peer dependencies with npx npm-install-peers
  2. Run npm run build:main to rebuild -> files in the dist folder should be replaced

Instructions for publishing the latest NPM package

Since this work is released on NPM, this is how you should work once a new release is ready:

  1. Update the version number in the package.json - node version.
  2. Check-in and make sure you are on master branch; if not, merge.
  3. Make sure you are logged into npm (you can do this by running npm whoami), if you are not logged in, use npm adduser to log in.
  4. Run npm publish - you will shortly receive an email which confirms the publication.

Note that this will only work if you have an npm-account with the correct permissions, mapped to this project.

Parts of this recipe