Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(turborepo): Set corepack dir for examples #5539

Merged
merged 2 commits into from
Jul 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion examples-tests/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ function set_package_manager() {
}

# Enable corepack so that when we set the packageManager in package.json it actually makes a diference.
corepack enable
if [ "$PRYSK_TEMP" == "" ]; then
COREPACK_INSTALL_DIR_CMD=
else
COREPACK_INSTALL_DIR="${PRYSK_TEMP}/corepack"
mkdir -p "${COREPACK_INSTALL_DIR}"
export PATH=${COREPACK_INSTALL_DIR}:$PATH
COREPACK_INSTALL_DIR_CMD="--install-directory=${COREPACK_INSTALL_DIR}"
fi
corepack enable "${COREPACK_INSTALL_DIR_CMD}"

# Set the packageManger version
NPM_PACKAGE_MANAGER_VALUE="npm@8.1.2"
Expand Down