( root: string, projectName: string, workspaceName: string )
| 92 | } |
| 93 | |
| 94 | async function writePlanFile( |
| 95 | root: string, |
| 96 | projectName: string, |
| 97 | workspaceName: string |
| 98 | ): Promise<string> { |
| 99 | const planFile = getPlanFilePath(workspaceName, projectName, root); |
| 100 | await fsPromises.mkdir(path.dirname(planFile), { recursive: true }); |
| 101 | await fsPromises.writeFile(planFile, "# Plan\n"); |
| 102 | return planFile; |
| 103 | } |
| 104 | |
| 105 | function createDeferred<T>() { |
| 106 | let resolve!: (value: T | PromiseLike<T>) => void; |
no test coverage detected