blob: c3375a0d8cdb20f074629c4f1a0c5441312beaba [file] [log] [blame]
// Called from "version" npm script when running `npm version`
// during release process. This script updates the version
// in index.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}"`, 'index.bzl');