This commit is contained in:
Renaud Pawlak 2017-11-04 10:39:14 +01:00
commit c325cc77b0

View File

@ -544,7 +544,7 @@ public class JSweetTranspiler implements JSweetOptions {
if (tscVersionFile.exists()) { if (tscVersionFile.exists()) {
v = FileUtils.readFileToString(tscVersionFile); 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 // this will lead to performances issues if having multiple versions
// of JSweet installed // of JSweet installed
if (ProcessUtil.isInstalledWithNpm("tsc")) { if (ProcessUtil.isInstalledWithNpm("tsc")) {