mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-21 21:31:11 +01:00
Run Yarn after updating the Bazel rule's package.json (#404)
See bazelbuild/rules_sass#36
This commit is contained in:
parent
df7c1030cf
commit
8801279796
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user