@squiz/dxp-cli-next 2.10.0-develop.2 → 2.11.0-develop.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.
Files changed (2) hide show
  1. package/lib/dxp.js +4 -1
  2. package/package.json +4 -4
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
+ const cli_color_1 = __importDefault(require("cli-color"));
9
10
  validateNodeVersion();
10
11
  (0, update_notifier_1.default)({ pkg, updateCheckInterval: 1 }).notify({
11
12
  isGlobal: true,
@@ -33,6 +34,8 @@ function validateNodeVersion() {
33
34
  .map(part => Number(part));
34
35
  const [nodeVersion] = nodeVersionParts;
35
36
  if (nodeVersion < 16) {
36
- throw new Error(`You are running an older version of node(${process.version}). Please install node v16 or higher`);
37
+ console.error(cli_color_1.default.red(`You are running an older version of node(${process.version}). Please install node v16 or higher`));
38
+ // eslint-disable-next-line no-process-exit
39
+ process.exit(1);
37
40
  }
38
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "2.10.0-develop.2",
3
+ "version": "2.11.0-develop.1",
4
4
  "repository": {
5
5
  "url": "https://gitlab.squiz.net/developer-experience/dxp-cli-next"
6
6
  },
@@ -39,8 +39,8 @@
39
39
  "codecov"
40
40
  ],
41
41
  "dependencies": {
42
+ "@squiz/component-cli-lib": "1.2.1-alpha.68",
42
43
  "@squiz/deployment-service-lib": "1.1.5-alpha.82",
43
- "@squiz/component-cli-lib": "1.2.1-alpha.60",
44
44
  "cli-color": "2.0.3",
45
45
  "commander": "9.3.0",
46
46
  "update-notifier": "5.1.0"
@@ -64,9 +64,9 @@
64
64
  "eslint-plugin-node": "11.1.0",
65
65
  "eslint-plugin-prettier": "4.2.1",
66
66
  "execa": "5.1.1",
67
- "husky": "7.0.4",
67
+ "husky": "8.0.1",
68
68
  "jest": "28.1.2",
69
- "lint-staged": "12.5.0",
69
+ "lint-staged": "13.0.3",
70
70
  "prettier": "2.7.1",
71
71
  "semantic-release": "19.0.3",
72
72
  "ts-jest": "28.0.5",