Commit 30b0e77
authored
fix(repo): run turbo via yarn exec for root scripts (#911)
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.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: only adjusts root `package.json` scripts to invoke Turbo via
Yarn, affecting how builds/tests are launched but not
application/runtime logic.
>
> **Overview**
> Switches root scripts to run Turbo via Yarn resolution instead of
relying on the `turbo` binary being on `PATH`.
>
> Updates `build`, `test:dev`, and `test:dev:quiet` to use `yarn exec
turbo run ...`, improving compatibility in environments with restricted
`PATH` settings (e.g., CI/sandboxes).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c21c392. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 4fa6147 commit 30b0e77
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments