From 6f966e75bfe808271eb54063ad9ab1995fa8cf5b Mon Sep 17 00:00:00 2001 From: Peter Donovan Date: Fri, 26 Aug 2022 16:39:01 -0700 Subject: [PATCH] Build on Windows. --- org.lflang.lfc/build.gradle | 6 +++++- org.lflang/src/lib/ts/reactor-ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/org.lflang.lfc/build.gradle b/org.lflang.lfc/build.gradle index da105af074..ee64d161cb 100644 --- a/org.lflang.lfc/build.gradle +++ b/org.lflang.lfc/build.gradle @@ -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') } diff --git a/org.lflang/src/lib/ts/reactor-ts b/org.lflang/src/lib/ts/reactor-ts index cbd9961884..da33b3a8e3 160000 --- a/org.lflang/src/lib/ts/reactor-ts +++ b/org.lflang/src/lib/ts/reactor-ts @@ -1 +1 @@ -Subproject commit cbd9961884d075be18cbcf55062cf185277bea63 +Subproject commit da33b3a8e3e442e12373bb9ca85700f346b8675d