nativescript 8.5.4-dev.0 → 8.5.4-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ const path = require("path");
22
22
  const helpers_1 = require("./helpers");
23
23
  const yok_1 = require("./yok");
24
24
  const constants_1 = require("../constants");
25
+ const semver = require("semver");
25
26
  class CommandDispatcher {
26
27
  constructor($logger, $injector, $cancellation, $commandsService, $staticConfig, $sysInfo, $options, $versionsService, $packageManager, $terminalSpinnerService) {
27
28
  this.$logger = $logger;
@@ -107,8 +108,9 @@ class CommandDispatcher {
107
108
  updateCommand = "pnpm i -g nativescript";
108
109
  break;
109
110
  }
110
- if (nativescriptCliVersion.currentVersion ===
111
- nativescriptCliVersion.latestVersion) {
111
+ if (semver.gte(nativescriptCliVersion.currentVersion, nativescriptCliVersion.latestVersion, {
112
+ loose: true,
113
+ })) {
112
114
  spinner.succeed("Up to date.");
113
115
  }
114
116
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "8.5.4-dev.0",
4
+ "version": "8.5.4-dev.1",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {