Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(bazel): Fix npm install on windows.
- Loading branch information
1 parent
fbe43c3
commit e85bcb0
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git internal/npm_install/npm_install.bzl internal/npm_install/npm_install.bzl | ||
index 7bbe1297..9dfb51c3 100644 | ||
--- internal/npm_install/npm_install.bzl | ||
+++ internal/npm_install/npm_install.bzl | ||
@@ -225,7 +225,7 @@ set -e | ||
repository_ctx.file( | ||
"_npm.cmd", | ||
content = """@echo off | ||
-cd /D "{root}" && "{npm}" {npm_args} | ||
+cd /D "{root}" && npm {npm_args} | ||
""".format( | ||
root = root, | ||
npm = repository_ctx.path(npm), |