(filters)
| 64 | ) |
| 65 | |
| 66 | function listWorkspaces(filters) { |
| 67 | const args = [`-r`, `list`, `--depth`, `-1`, `--json`] |
| 68 | for (const filter of filters) { |
| 69 | args.push(`--filter`, filter) |
| 70 | } |
| 71 | |
| 72 | try { |
| 73 | return parsePnpmList(run(`pnpm`, args)) |
| 74 | } catch (error) { |
| 75 | console.warn( |
| 76 | `Falling back to building desktop because pnpm filtering failed.` |
| 77 | ) |
| 78 | console.warn(error.message) |
| 79 | return [{ name: desktopPackage, relativePath: `packages/agents-desktop` }] |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | function parsePnpmList(output) { |
| 84 | return JSON.parse(output).map((workspace) => ({ |
no test coverage detected