File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ SET SCRIPT_DIR=%~dp0
509
509
""" + "" .join ([
510
510
"""
511
511
echo Running npm %* in {root}
512
- cd "{root}"
512
+ cd /D "{root}"
513
513
CALL "%SCRIPT_DIR%\\ {node}" "%SCRIPT_DIR%\\ {script}" --scripts-prepend-node-path=false %*
514
514
if %errorlevel% neq 0 exit /b %errorlevel%
515
515
""" .format (
@@ -595,7 +595,7 @@ SET SCRIPT_DIR=%~dp0
595
595
"""
596
596
echo Running yarn %* in {root}
597
597
SET "YARN_IGNORE_PATH="
598
- cd "{root}"
598
+ cd /D "{root}"
599
599
CALL "%SCRIPT_DIR%\\ {node}" "%SCRIPT_DIR%\\ {script}" %*
600
600
if %errorlevel% neq 0 exit /b %errorlevel%
601
601
""" .format (
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ set -e
245
245
repository_ctx .file (
246
246
"_npm.cmd" ,
247
247
content = """@echo off
248
- cd "{root}" && "{npm}" {npm_args}
248
+ cd /D "{root}" && "{npm}" {npm_args}
249
249
""" .format (
250
250
root = root ,
251
251
npm = repository_ctx .path (npm ),
@@ -382,7 +382,7 @@ unset YARN_IGNORE_PATH
382
382
"_yarn.cmd" ,
383
383
content = """@echo off
384
384
set "YARN_IGNORE_PATH="
385
- cd "{root}" && "{yarn}" {yarn_args}
385
+ cd /D "{root}" && "{yarn}" {yarn_args}
386
386
""" .format (
387
387
root = root ,
388
388
yarn = repository_ctx .path (yarn ),
You can’t perform that action at this time.
0 commit comments