2.3.3 release

This commit is contained in:
lgrignon 2019-09-09 00:31:22 +02:00
parent 74adc70cd3
commit 539b85a9eb
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jsweet</groupId>
<artifactId>jsweet-transpiler</artifactId>
<version>2.3.3-SNAPSHOT</version>
<version>2.3.3</version>
<name>JSweet transpiler</name>
<description>A Java to TypeScript/JavaScript Open Transpiler</description>
<developers>

View File

@ -561,10 +561,10 @@ public class JSweetTranspiler implements JSweetOptions {
if (tscVersionFile.exists()) {
v = FileUtils.readFileToString(tscVersionFile);
}
if (!ProcessUtil.isPackageInstalledGloballyWithNpm("tsc") || !v.trim().startsWith(TSC_VERSION)) {
if (!ProcessUtil.isExecutableInstalledGloballyWithNpm("tsc") || !v.trim().startsWith(TSC_VERSION)) {
// this will lead to performances issues if having multiple versions
// of JSweet installed
if (ProcessUtil.isPackageInstalledGloballyWithNpm("tsc")) {
if (ProcessUtil.isExecutableInstalledGloballyWithNpm("tsc")) {
ProcessUtil.uninstallGlobalNodePackage("typescript");
}
ProcessUtil.installGlobalNodePackage("typescript", TSC_VERSION);