Skip to content

Commit 97fd203

Browse files
committed
Take our node, not the one that comes first on the PATH.
1 parent 7112409 commit 97fd203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/extractor/lib/typescript/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ genrule(
1717
# we need a temp dir, and unfortunately, $TMPDIR is not set on Windows
1818
"export TEMP=$$(mktemp -d)",
1919
# Add node to the path so that npm run can find it - it's calling env node
20-
"export PATH=$$PATH:$$BAZEL_ROOT/$$(dirname $(execpath @nodejs//:node_bin))",
20+
"export PATH=$$BAZEL_ROOT/$$(dirname $(execpath @nodejs//:node_bin)):$$PATH",
2121
"export NPM=$$BAZEL_ROOT/$(execpath @nodejs//:npm_bin)",
2222
# npm has a global cache which doesn't work on macos, where absolute paths aren't filtered out by the sandbox.
2323
# Therefore, set a temporary cache directory.

0 commit comments

Comments
 (0)