Run Yarn after updating the Bazel rule's package.json (#404)

See bazelbuild/rules_sass#36
This commit is contained in:
Natalie Weizenbaum 2018-07-11 13:12:59 -07:00 committed by GitHub
parent df7c1030cf
commit 8801279796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,8 @@ import 'utils.dart';
updateBazel() async {
ensureBuild();
run("npm", arguments: ["install", "-g", "yarn"]);
var repo = await cloneOrPull("https://github.com/bazelbuild/rules_sass.git");
var packageFile = new File(p.join(repo, "sass", "package.json"));
@ -21,6 +23,8 @@ updateBazel() async {
.readAsStringSync()
.replaceFirst(new RegExp(r'"sass": "[^"]+"'), '"sass": "$version"'));
run("yarn", workingDirectory: p.join(repo, "sass"));
run("git",
arguments: [
"commit",