mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-12 03:20:56 -06:00
Merge pull request #226 from sparecycles/contrib/node-modules-path-4-mac
fix path in Jakefile (for mac)
This commit is contained in:
commit
2843b82f08
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