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