mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
fix node_module path in Jakefile (mac too)
This commit is contained in:
parent
64ab02ec43
commit
b6cf356373
7
Jakefile
7
Jakefile
@ -18,7 +18,12 @@ var copyright = "CopyrightNotice.txt";
|
||||
var thirdParty = "ThirdPartyNoticeText.txt";
|
||||
|
||||
// add node_modules to path so we don't need global modules, prefer the modules by adding them first
|
||||
process.env.path = path.resolve("./node_modules/.bin/") + path.delimiter + process.env.path;
|
||||
var nodeModulesPathPrefix = path.resolve("./node_modules/.bin/") + path.delimiter;
|
||||
if (process.env.path !== undefined) {
|
||||
process.env.path = nodeModulesPathPrefix + process.env.path;
|
||||
} else if (process.env.PATH !== undefined) {
|
||||
process.env.PATH = nodeModulesPathPrefix + process.env.PATH;
|
||||
}
|
||||
|
||||
var compilerSources = [
|
||||
"core.ts",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user