blob: 6601d2f47756f6b0236dd7bd6eed5f46ce4aad21 [file] [log] [blame] [edit]
// 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\.]*(-(beta|rc).[0-9]*)?\"/, `VERSION = "${version}"`, 'version.bzl');