| 202 | } |
| 203 | |
| 204 | write(fileName: string, content: string) { |
| 205 | const absFilePath = this.fs.resolve(this.basePath, fileName); |
| 206 | if (this.multiCompileHostExt !== null) { |
| 207 | this.multiCompileHostExt.invalidate(absFilePath); |
| 208 | if (!fileName.endsWith('.ts')) { |
| 209 | this.changedResources!.add(absFilePath); |
| 210 | } |
| 211 | } |
| 212 | this.fs.ensureDir(this.fs.dirname(absFilePath)); |
| 213 | this.fs.writeFile(absFilePath, content); |
| 214 | } |
| 215 | |
| 216 | invalidateCachedFile(fileName: string): void { |
| 217 | const absFilePath = this.fs.resolve(this.basePath, fileName); |