From 16e9d411571b806ea8de106a5dc2996f697eb8f2 Mon Sep 17 00:00:00 2001 From: lgrignon Date: Thu, 2 Nov 2017 09:39:15 +0100 Subject: [PATCH] fixed tsc version check --- .../src/main/java/org/jsweet/transpiler/JSweetTranspiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transpiler/src/main/java/org/jsweet/transpiler/JSweetTranspiler.java b/transpiler/src/main/java/org/jsweet/transpiler/JSweetTranspiler.java index 194125ac..24c9e57e 100644 --- a/transpiler/src/main/java/org/jsweet/transpiler/JSweetTranspiler.java +++ b/transpiler/src/main/java/org/jsweet/transpiler/JSweetTranspiler.java @@ -544,7 +544,7 @@ public class JSweetTranspiler implements JSweetOptions { if (tscVersionFile.exists()) { v = FileUtils.readFileToString(tscVersionFile); } - if (!ProcessUtil.isInstalledWithNpm("tsc") || !TSC_VERSION.equals(v.trim())) { + if (!ProcessUtil.isInstalledWithNpm("tsc") || !v.trim().startsWith(TSC_VERSION)) { // this will lead to performances issues if having multiple versions // of JSweet installed if (ProcessUtil.isInstalledWithNpm("tsc")) {