mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
2.3.3 release
This commit is contained in:
parent
74adc70cd3
commit
539b85a9eb
@ -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>
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user