We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64ab02e commit b6cf356Copy full SHA for b6cf356
1 file changed
Jakefile
@@ -18,7 +18,12 @@ var copyright = "CopyrightNotice.txt";
18
var thirdParty = "ThirdPartyNoticeText.txt";
19
20
// add node_modules to path so we don't need global modules, prefer the modules by adding them first
21
-process.env.path = path.resolve("./node_modules/.bin/") + path.delimiter + process.env.path;
+var nodeModulesPathPrefix = path.resolve("./node_modules/.bin/") + path.delimiter;
22
+if (process.env.path !== undefined) {
23
+ process.env.path = nodeModulesPathPrefix + process.env.path;
24
+} else if (process.env.PATH !== undefined) {
25
+ process.env.PATH = nodeModulesPathPrefix + process.env.PATH;
26
+}
27
28
var compilerSources = [
29
"core.ts",
0 commit comments