8000 Merge pull request #1 from Clementp57/master · lgrignon/typescript.java@2fa9a7e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fa9a7e

Browse files
authored
Merge pull request #1 from Clementp57/master
Fixed osx node path
2 parents b883096 + 85b2f8c commit 2fa9a7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/ts.core/src/ts/nodejs/NodejsProcess.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ public static List<String> createNodeCommands(File nodejsFile, File tsFile) {
203203
// for osx, path of node.js should be setted?
204204
if (new File("/usr/local/bin/node").exists()) {
205205
commands.add("/usr/local/bin/node");
206-
}
207-
if (new File("/opt/local/bin/node").exists()) {
206+
} else if (new File("/opt/local/bin/node").exists()) {
208207
commands.add("/opt/local/bin/node");
209208
} else {
210209
commands.add("node");

0 commit comments

Comments
 (0)
0