@squiz/dxp-cli-next 2.8.0 → 2.9.0-develop.2

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.
Files changed (2) hide show
  1. package/lib/dxp.js +10 -0
  2. package/package.json +2 -2
package/lib/dxp.js CHANGED
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const commander_1 = __importDefault(require("commander"));
7
7
  const update_notifier_1 = __importDefault(require("update-notifier"));
8
8
  const pkg = require('../package.json');
9
+ validateNodeVersion();
9
10
  (0, update_notifier_1.default)({ pkg, updateCheckInterval: 1 }).notify({
10
11
  isGlobal: true,
11
12
  });
@@ -26,3 +27,12 @@ program
26
27
  program.help();
27
28
  })
28
29
  .parse(process.argv);
30
+ function validateNodeVersion() {
31
+ const nodeVersionParts = process.versions.node
32
+ .split('.')
33
+ .map(part => Number(part));
34
+ const [nodeVersion] = nodeVersionParts;
35
+ if (nodeVersion < 16) {
36
+ throw new Error(`You are running an older version of node(${process.version}). Please install node v16 or higher`);
37
+ }
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "2.8.0",
3
+ "version": "2.9.0-develop.2",
4
4
  "repository": {
5
5
  "url": "https://gitlab.squiz.net/developer-experience/dxp-cli-next"
6
6
  },
@@ -39,7 +39,7 @@
39
39
  "codecov"
40
40
  ],
41
41
  "dependencies": {
42
- "@squiz/deployment-service-lib": "1.1.5-alpha.81",
42
+ "@squiz/deployment-service-lib": "1.1.5-alpha.82",
43
43
  "@squiz/component-cli-lib": "1.2.1-alpha.60",
44
44
  "cli-color": "2.0.2",
45
45
  "commander": "9.3.0",