site-utils
The site-utils package contains utility code and components for building public-facing websites using Two Taps 2.0. It is available via npm at https://www.npmjs.com/package/@twotaps/site-utils for internal website use or for customers/partners.
Publish
To publish the site-utils package on npm, you need an npm account. If you don't have one, create an account at https://www.npmjs.com/signup.
You also need permission from the Two Taps 2.0 admin to publish the site-utils package. Contact the Two Taps 2.0 admin to obtain the necessary permissions.
Once you have the required permissions, run the following command:
yarn publish
Provide the new version, npm username, email, and password.
Since site-utils is currently being used internally by the snap-fitness repository https://github.com/ltnetwork/snap-fitness-nextjs, that project needs to be updated to ensure the latest changes are available.
In that repository, in package.json
file update to the latest version:
"@twotaps/site-utils": "^0.1.xx",
Still in that project, update the project dependencies:
yarn install