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")) {