cr feedback
This commit is contained in:
parent
956a6b720a
commit
8d3e4f3475
1 changed files with 5 additions and 2 deletions
|
@ -60,7 +60,7 @@ namespace ts {
|
||||||
readFile(path: string): string;
|
readFile(path: string): string;
|
||||||
writeFile(path: string, contents: string): void;
|
writeFile(path: string, contents: string): void;
|
||||||
readDirectory(path: string, extension?: string, exclude?: string[]): string[];
|
readDirectory(path: string, extension?: string, exclude?: string[]): string[];
|
||||||
}
|
};
|
||||||
|
|
||||||
export var sys: System = (function () {
|
export var sys: System = (function () {
|
||||||
|
|
||||||
|
@ -209,6 +209,7 @@ namespace ts {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNodeSystem(): System {
|
function getNodeSystem(): System {
|
||||||
const _fs = require("fs");
|
const _fs = require("fs");
|
||||||
const _path = require("path");
|
const _path = require("path");
|
||||||
|
@ -469,10 +470,11 @@ namespace ts {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getChakraSystem(): System {
|
function getChakraSystem(): System {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
newLine: '\r\n',
|
newLine: "\r\n",
|
||||||
args: ChakraHost.args,
|
args: ChakraHost.args,
|
||||||
useCaseSensitiveFileNames: false,
|
useCaseSensitiveFileNames: false,
|
||||||
write(message: string) {
|
write(message: string) {
|
||||||
|
@ -516,6 +518,7 @@ namespace ts {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") {
|
if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") {
|
||||||
return getWScriptSystem();
|
return getWScriptSystem();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue