Commit 301396d 1 parent 772e5aa commit 301396d Copy full SHA for 301396d
File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 43
43
44
44
" ${TURBOREPO_TESTS_DIR} /helpers/copy_fixture.sh" " ${TARGET_DIR} " " ${FIXTURE_NAME} " " ${TURBOREPO_TESTS_DIR} /integration/fixtures"
45
45
" ${TURBOREPO_TESTS_DIR} /helpers/setup_git.sh" " ${TARGET_DIR} "
46
- . " ${TURBOREPO_TESTS_DIR} /helpers/setup_package_manager.sh" " ${TARGET_DIR} " " $PACKAGE_MANAGER "
46
+ " ${TURBOREPO_TESTS_DIR} /helpers/setup_package_manager.sh" " ${TARGET_DIR} " " $PACKAGE_MANAGER "
47
47
if $INSTALL_DEPS ; then
48
48
" ${TURBOREPO_TESTS_DIR} /helpers/install_deps.sh" " $PACKAGE_MANAGER "
49
49
fi
Original file line number Diff line number Diff line change @@ -29,16 +29,15 @@ pkgManagerName="${pkgManager%%@*}"
29
29
30
30
# Set the corepack install directory to a temp directory (either prysk temp or provided dir).
31
31
# This will help isolate from the rest of the system, especially when running tests on a dev machine.
32
- COREPACK_INSTALL_DIR=" ${PRYSK_TEMP:- $dir } /corepack"
33
- if [[ " $OSTYPE " == " msys" ]]; then
34
- # Ensure it's a POSIX path so that we can use it as a PATH entry (C:\... -> /c/...)
35
- COREPACK_INSTALL_DIR=" $( cygpath -au " $COREPACK_INSTALL_DIR " ) "
36
- # Ensure corepack uses lowercase .cmd extensions, consistent with node's bundled npm
37
- export PATHEXT=" $( echo " $PATHEXT " | tr ' [:upper:]' ' [:lower:]' ) "
32
+ if [ " $PRYSK_TEMP " == " " ]; then
33
+ COREPACK_INSTALL_DIR=" $dir /corepack"
34
+ mkdir -p " ${COREPACK_INSTALL_DIR} "
35
+ export PATH=${COREPACK_INSTALL_DIR} :$PATH
36
+ else
37
+ COREPACK_INSTALL_DIR=" ${PRYSK_TEMP} /corepack"
38
+ mkdir -p " ${COREPACK_INSTALL_DIR} "
39
+ export PATH=${COREPACK_INSTALL_DIR} :$PATH
38
40
fi
39
- mkdir -p " ${COREPACK_INSTALL_DIR} "
40
- export PATH=${COREPACK_INSTALL_DIR} :$PATH
41
-
42
41
43
42
# Enable corepack so that the packageManager setting in package.json is respected.
44
43
corepack enable $pkgManagerName " --install-directory=${COREPACK_INSTALL_DIR} "
You can’t perform that action at this time.
0 commit comments