blob: 60e77d0960aae8c0aa23f15e8b620a3a405732b4 [file]
// Called from "version" npm script when running `npm version`
// during release process. This script updates the version
// in defs.bzl to match that of package.json.
const shell = require('shelljs');
const version = require('../package.json').version;
shell.sed('-i', /^VERSION \= \"[0-9\.]*\"/, `VERSION = "${version}"`, 'defs.bzl');