( filePath: string, content: string )
| 115 | }; |
| 116 | |
| 117 | export const writeProjectFile = async ( |
| 118 | filePath: string, |
| 119 | content: string |
| 120 | ): Promise<void> => { |
| 121 | // Validate before creating directories so the guard can't be used to |
| 122 | // mkdir outside the project |
| 123 | assertWritableProjectPath(filePath); |
| 124 | ensureDirectory(filePath); |
| 125 | await writeFile(filePath, content); |
| 126 | }; |
| 127 | |
| 128 | export const updatePackageJson = async ({ |
| 129 | dependencies, |
no test coverage detected
searching dependent graphs…