(fileName: string, content: string)
| 236 | } |
| 237 | |
| 238 | write(fileName: string, content: string) { |
| 239 | const absFilePath = this.fs.resolve(this.basePath, fileName); |
| 240 | if (this.multiCompileHostExt !== null) { |
| 241 | this.multiCompileHostExt.invalidate(absFilePath); |
| 242 | this.ngpSession?.recordChangedFile(absFilePath, /* created */ !this.fs.exists(absFilePath)); |
| 243 | if (!fileName.endsWith('.ts')) { |
| 244 | this.changedResources!.add(absFilePath); |
| 245 | } |
| 246 | } |
| 247 | this.fs.ensureDir(this.fs.dirname(absFilePath)); |
| 248 | this.fs.writeFile(absFilePath, content); |
| 249 | } |
| 250 | |
| 251 | invalidateCachedFile(fileName: string): void { |
| 252 | const absFilePath = this.fs.resolve(this.basePath, fileName); |
no test coverage detected