A workspace-root manifest so the down-scan gate (looksLikeProjectRoot) passes.
(dir: string)
| 30 | } |
| 31 | /** A workspace-root manifest so the down-scan gate (looksLikeProjectRoot) passes. */ |
| 32 | function mkWorkspaceRoot(dir: string): string { |
| 33 | fs.mkdirSync(dir, { recursive: true }); |
| 34 | fs.writeFileSync(path.join(dir, 'package.json'), '{"private":true,"workspaces":["packages/*"]}'); |
| 35 | return dir; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Run the built CLI's `prompt-hook` in `dir` with a UserPromptSubmit payload |
no test coverage detected