Skip to content

Commit

Permalink
fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Oct 5, 2024
1 parent 630ef1a commit 87d8835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main/java/ca/weblite/jdeploy/JDeploy.java
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,7 @@ public BundlerResult bundle(
appInfo.setNpmSource(bundlerSettings.getSource());
}

String packageJsonVersion = m().getString("version");
String packageJsonVersion = m().get("version") != null ? m().get("version").toString() : "latest";
if (bundlerSettings.getBundleVersion() != null) {
appInfo.setNpmVersion(bundlerSettings.getBundleVersion());
} else if (bundlerSettings.isAutoUpdateEnabled() && !packageJsonVersion.startsWith("0.0.0-")) {
Expand Down

0 comments on commit 87d8835

Please sign in to comment.