1.4 KiB
1.4 KiB
Publishing to npm
This repo already has the package source under packages/web3auth-algorand and the UI add-on under packages/web3auth-algorand-ui. Both use plain TypeScript builds (no bundler).
Prereqs
- npm account with 2FA configured (recommended).
- Access to the
@tokenizerwanpm scope (or changenamein eachpackage.jsonto your scope). - Node 20+.
Build locally
cd packages/web3auth-algorand
npm install
npm run build # emits dist/
cd ../web3auth-algorand-ui
npm install
npm run build
To double-check what will be published:
npm pack --dry-run
Publish steps
- Set the version you want in each
package.json(versionfield). Use semver. - Make sure
filesincludesdist(already set) and thatdistexists (runnpm run build). - Log in once if needed:
npm login. - From each package folder, publish:
cd packages/web3auth-algorand
npm publish --access public
cd ../web3auth-algorand-ui
npm publish --access public
Releasing updates
- Bump the version in the package you changed.
- Rebuild that package.
- Publish only the changed package(s).
Troubleshooting
- 403 errors: ensure your npm token owns the scope or rename the package.
- Missing files in npm: verify
npm pack --dry-runincludesdistandpackage.jsonpoints todist/index.js. - Type errors: run
npm run buildto catch missing types before publishing.