File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ SET SCRIPT_DIR=%~dp0
509509""" + "" .join ([
510510 """
511511echo Running npm %* in {root}
512- cd "{root}"
512+ cd /D "{root}"
513513CALL "%SCRIPT_DIR%\\ {node}" "%SCRIPT_DIR%\\ {script}" --scripts-prepend-node-path=false %*
514514if %errorlevel% neq 0 exit /b %errorlevel%
515515""" .format (
@@ -595,7 +595,7 @@ SET SCRIPT_DIR=%~dp0
595595 """
596596echo Running yarn %* in {root}
597597SET "YARN_IGNORE_PATH="
598- cd "{root}"
598+ cd /D "{root}"
599599CALL "%SCRIPT_DIR%\\ {node}" "%SCRIPT_DIR%\\ {script}" %*
600600if %errorlevel% neq 0 exit /b %errorlevel%
601601""" .format (
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ set -e
245245 repository_ctx .file (
246246 "_npm.cmd" ,
247247 content = """@echo off
248- cd "{root}" && "{npm}" {npm_args}
248+ cd /D "{root}" && "{npm}" {npm_args}
249249""" .format (
250250 root = root ,
251251 npm = repository_ctx .path (npm ),
@@ -382,7 +382,7 @@ unset YARN_IGNORE_PATH
382382 "_yarn.cmd" ,
383383 content = """@echo off
384384set "YARN_IGNORE_PATH="
385- cd "{root}" && "{yarn}" {yarn_args}
385+ cd /D "{root}" && "{yarn}" {yarn_args}
386386""" .format (
387387 root = root ,
388388 yarn = repository_ctx .path (yarn ),
You can’t perform that action at this time.
0 commit comments