@neutron-org/neutronjs
v11.0.0
Published
JS and TS types relating to Protocol Buffers used by Neutron
Downloads
682
Keywords
Readme
neutronjs
Cosmjs types for users of the Neutron chain.
Version of this package is synced with the Neutron chain version.
Maintenance
This section is for maintainers of this repo, not users.
Getting started
# Pull external code
git submodule update --remote
git submodule update --init --recursive
# Install dependencies
npm install
# Set specified versions for submodules
# Submodules versions (commits or tags) should be set in the ./scripts/set-versions.sh script for the corresponding *_REV constants
npm run set-versionsGenerate updated protos directories in protos/*-src folders: npm run precodegen
Rebuilding types
# Generate .ts files into ./src
npm run codegen
# Build .js/.d.ts files
npm run buildPublishing
Before publishing, make sure package and dependency versions are aligned with Neutron core:
package.jsonversion must match the Neutron core version exactly. In other words,@neutron-org/[email protected]must correspond to Neutron corevX.Y.Zrelease.- All
*_REVvalues inscripts/set-versions.shmust match the versions pinned in Neutron core go.mod.
Publish a stable release as latest:
# package.json version: X.Y.Z
npm publish ./build --access public --tag latestPublish a release candidate as next:
# package.json version: X.Y.Z-rc.N
npm publish ./build --access public --tag nextYou can safely check the release content using
npm pack --dry-run ./build 2>&1 | less