We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53232b9 commit 2a206b3Copy full SHA for 2a206b3
src/compiler/sys.ts
@@ -611,7 +611,7 @@ namespace ts {
611
const originalWriteFile = sys.writeFile;
612
sys.writeFile = function(path, data, writeBom) {
613
const directoryPath = getDirectoryPath(normalizeSlashes(path));
614
- if (!sys.directoryExists(directoryPath)) {
+ if (directoryPath && !sys.directoryExists(directoryPath)) {
615
recursiveCreateDirectory(directoryPath, sys);
616
}
617
originalWriteFile.call(sys, path, data, writeBom);
0 commit comments