@squiz/dxp-cli-next 1.5.0-develop.2 → 1.5.0

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.
package/lib/td/deploy.js CHANGED
@@ -8,13 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  const commander_1 = require("commander");
16
13
  const deployment_service_lib_1 = require("@squiz/deployment-service-lib");
17
- const cli_color_1 = __importDefault(require("cli-color"));
18
14
  const deployCommand = new commander_1.Command()
19
15
  .name('deploy')
20
16
  .argument('<source>', 'folder/file path containing the template files to deploy')
@@ -32,17 +28,6 @@ const deployCommand = new commander_1.Command()
32
28
  .addOption(new commander_1.Option('--no-watch', 'Optional: disabling polling for a result. The deployment ID will be returned and return.').default(true))
33
29
  .addOption(new commander_1.Option('--dry-run', 'Optional: Perform validation on the local template and do not upload package').default(false))
34
30
  .action((source, destination, options, self) => __awaiter(void 0, void 0, void 0, function* () {
35
- try {
36
- return (0, deployment_service_lib_1.CliUpload)(options.matrixApiUrl, options.matrixApiKey, options.templateDeploymentUrl, source, destination, options.watch, options.force, options.dryRun);
37
- }
38
- catch (error) {
39
- if (error.message) {
40
- deployCommand.error(cli_color_1.default.red(error.message));
41
- }
42
- else {
43
- console.error(error);
44
- deployCommand.error('An unknown error occurred');
45
- }
46
- }
31
+ return (0, deployment_service_lib_1.CliUpload)(options.matrixApiUrl, options.matrixApiKey, options.templateDeploymentUrl, source, destination, options.watch, options.force, options.dryRun);
47
32
  }));
48
33
  exports.default = deployCommand;
@@ -8,12 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  const commander_1 = require("commander");
16
- const cli_color_1 = __importDefault(require("cli-color"));
17
13
  const deployment_service_lib_1 = require("@squiz/deployment-service-lib");
18
14
  const downCommand = new commander_1.Command()
19
15
  .name('download')
@@ -29,17 +25,6 @@ const downCommand = new commander_1.Command()
29
25
  .env('DEPLOYMENT_INFO_API_URL')
30
26
  .makeOptionMandatory(true))
31
27
  .action((source, destination, options, self) => __awaiter(void 0, void 0, void 0, function* () {
32
- try {
33
- return (0, deployment_service_lib_1.cliDownload)(options.matrixApiUrl, options.matrixApiKey, options.templateDeploymentUrl, source, destination);
34
- }
35
- catch (error) {
36
- if (error.message) {
37
- downCommand.error(cli_color_1.default.red(error.message));
38
- }
39
- else {
40
- console.error(error);
41
- downCommand.error('An unknown error occurred');
42
- }
43
- }
28
+ return (0, deployment_service_lib_1.cliDownload)(options.matrixApiUrl, options.matrixApiKey, options.templateDeploymentUrl, source, destination);
44
29
  }));
45
30
  exports.default = downCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "1.5.0-develop.2",
3
+ "version": "1.5.0",
4
4
  "repository": {
5
5
  "url": "https://gitlab.squiz.net/developer-experience/dxp-cli-next"
6
6
  },
@@ -40,7 +40,6 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@squiz/deployment-service-lib": "^1.1.5-alpha.21",
43
- "cli-color": "^2.0.1",
44
43
  "commander": "^9.0.0",
45
44
  "update-notifier": "^5.1.0"
46
45
  },
@@ -48,7 +47,6 @@
48
47
  "@semantic-release/git": "^10.0.1",
49
48
  "@semantic-release/gitlab": "^7.0.4",
50
49
  "@semantic-release/npm": "^9.0.0",
51
- "@types/cli-color": "^2.0.2",
52
50
  "@types/jest": "^27.4.0",
53
51
  "@types/node": "^17.0.14",
54
52
  "@types/update-notifier": "^5.1.0",