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