- Edit
Cargo.toml
. - Edit
package.json
.
Run the following to update the lockfiles:
CARGO_BAZEL_REPIN=true bazel sync --only=crate_index
npm install --package-lock-only
Commit the config files and the lockfiles in a separate commit, and merge the changes via a pull request.
Deploy an optimised build to NPM.
bazel build -c opt //dist:pkg_tar
npm publish bazel-bin/dist/pkg_tar.tar