The package to be published gets its configuration from tokenbridge/burner-wallet-plugin/tokenbridge-plugin/package.json
{
"name": "tokenbridge-plugin",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"/dist"
],
}nameis the name of how package will be available in npm.mainis entry point for the packagetypesis the entry point for typescript typesfilesis the list of files included when publishing the package. So we have to runyarn buildfirst to generate thedistfolder.
-
Create account in https://www.npmjs.com/
-
Go to
tokenbridge/burner-wallet-plugin/tokenbridge-plugin/ -
Run
yarn build. Make sure it generates thedistfolder -
Update
versionintokenbridge/burner-wallet-plugin/tokenbridge-plugin/package.json -
Run
yarn publishand fill login information if required. The prompt will ask for the new version, complete it with the version frompackage.json
Done! Now the package is published in npm registry.
More information in https://classic.yarnpkg.com/en/docs/publishing-a-package/