The package to be published gets its configuration from tokenbridge/burner-wallet-plugin/tokenbridge-bw-exchange/package.json
{
"name": "tokenbridge-bw-exchange",
"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-bw-exchange/ -
Run
yarn build. Make sure it generates thedistfolder -
Update
versionintokenbridge/burner-wallet-plugin/tokenbridge-bw-exchange/package.json -
Run
yarn loginand fill login information if required. -
Run
yarn publish --access public. The prompt will ask for the new version, complete it with the version frompackage.json
More information in https://classic.yarnpkg.com/en/docs/publishing-a-package/