Skip to content

Commit

Permalink
Build on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Aug 26, 2022
1 parent 1825bab commit 6f966e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion org.lflang.lfc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ task buildLfc(dependsOn: ['setupTypescriptRuntime']) {
}

task setupTypescriptRuntime(type: Exec) {
String npm = 'npm';
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
npm = 'npm.cmd'
}
workingDir '../org.lflang/src/lib/ts/reactor-ts'
commandLine 'npm', 'install'
commandLine npm, 'install'
outputs.dir('../org.lflang/src/lib/ts/reactor-ts/lib')
inputs.dir('../org.lflang/src/lib/ts/reactor-ts')
}
Expand Down
2 changes: 1 addition & 1 deletion org.lflang/src/lib/ts/reactor-ts
Submodule reactor-ts updated 1 files
+1 −1 package.json

0 comments on commit 6f966e7

Please sign in to comment.