* Clean up downloaded template directory
(
templatePath: string,
fileSystemExecutor: FileSystemExecutor,
)
| 137 | * Clean up downloaded template directory |
| 138 | */ |
| 139 | static async cleanup( |
| 140 | templatePath: string, |
| 141 | fileSystemExecutor: FileSystemExecutor, |
| 142 | ): Promise<void> { |
| 143 | // Only clean up if it's in temp directory |
| 144 | if (templatePath.startsWith(tmpdir())) { |
| 145 | await fileSystemExecutor.rm(templatePath, { recursive: true, force: true }); |
| 146 | } |
| 147 | } |
| 148 | } |
no test coverage detected