From c21c39263f6e65215fe6d287f9a0c4a0cb8af6dd Mon Sep 17 00:00:00 2001 From: grypez <143971198+grypez@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:00:11 -0400 Subject: [PATCH] fix(repo): run turbo via yarn exec for root scripts Root build and test scripts invoked `turbo` as a bare binary, which only works when `node_modules/.bin` is on the shell PATH. Cursor's agent sandbox (and similar restricted runners) often use a minimal PATH without that directory, producing "command not found: turbo" even though turbo is installed. Use `yarn exec turbo` so Yarn resolves and runs the workspace dependency without relying on PATH. Made-with: Cursor --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cbb79f5cb..338c2b140 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "packages/*" ], "scripts": { - "build": "turbo run build", + "build": "yarn exec turbo run build", "build:clean": "yarn clean && yarn build", "build:docs": "yarn workspaces foreach --all --exclude @ocap/monorepo --exclude @ocap/extension --parallel --interlaced --verbose run build:docs", "changelog:update": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run changelog:update", @@ -29,8 +29,8 @@ "prepack": "./scripts/prepack.sh", "rebuild:native": "./scripts/rebuild-native.sh", "test": "vitest run", - "test:dev": "turbo run test:dev", - "test:dev:quiet": "turbo run test:dev:quiet --output-logs=errors-only", + "test:dev": "yarn exec turbo run test:dev", + "test:dev:quiet": "yarn exec turbo run test:dev:quiet --output-logs=errors-only", "test:e2e": "yarn workspaces foreach --all run test:e2e", "test:e2e:ci": "yarn workspaces foreach --all run test:e2e:ci", "test:e2e:local": "yarn workspaces foreach --all run test:e2e:local",