From 1b1ab1ce8595e8119c2d66326dcd962672653fdd Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Sun, 8 Dec 2024 21:20:31 -0700 Subject: [PATCH] WIP --- turborepo-tests/example-with-npm/package.json | 3 +-- turborepo-tests/helpers/setup_example_test.sh | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/turborepo-tests/example-with-npm/package.json b/turborepo-tests/example-with-npm/package.json index 268343b1be3d8..36f5237959317 100644 --- a/turborepo-tests/example-with-npm/package.json +++ b/turborepo-tests/example-with-npm/package.json @@ -6,6 +6,5 @@ "dependencies": { "turborepo-tests-helpers": "workspace:*", "turborepo-examples": "workspace:*" - }, - "packageManager": "npm" + } } diff --git a/turborepo-tests/helpers/setup_example_test.sh b/turborepo-tests/helpers/setup_example_test.sh index efd4c330e896e..d01d76ae18396 100644 --- a/turborepo-tests/helpers/setup_example_test.sh +++ b/turborepo-tests/helpers/setup_example_test.sh @@ -21,11 +21,11 @@ fi # Use the right command for each package manager if [ "$package_manager" == "npm" ]; then - package_manager_command="npx @turbo/workspaces convert . npm || true && npm install" + package_manager_command="(npx @turbo/workspaces convert . npm; exit 0) && npm install" elif [ "$package_manager" == "pnpm" ]; then - package_manager_command="npx @turbo/workspaces convert . pnpm || true && pnpm install" + package_manager_command="(npx @turbo/workspaces convert . pnpm; exit 0) && pnpm install" elif [ "$package_manager" == "yarn" ]; then - package_manager_command="npx @turbo/workspaces convert . yarn || true && yarn" + package_manager_command="(npx @turbo/workspaces convert . yarn; exit 0) && yarn" fi # All examples implement these two tasks