1.2 KiB
1.2 KiB
Plugin Package Information
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"
]
}
name
is the name of how package will be available in npm.main
is entry point for the packagetypes
is the entry point for typescript typesfiles
is the list of files included when publishing the package. So we have to runyarn build
first to generate thedist
folder.
Steps to publish to npm
-
Create account in https://www.npmjs.com/
-
Go to
tokenbridge/burner-wallet-plugin/tokenbridge-bw-exchange/
-
Run
yarn build
. Make sure it generates thedist
folder -
Update
version
intokenbridge/burner-wallet-plugin/tokenbridge-bw-exchange/package.json
-
Run
yarn login
and 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/