Skip to content

Commit

Permalink
Run Yarn after updating the Bazel rule's package.json (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Jul 11, 2018
1 parent df7c103 commit 8801279
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tool/grind/bazel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -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",
Expand Down

0 comments on commit 8801279

Please sign in to comment.