@squiz/dxp-cli-next 1.9.0-develop.3 → 1.9.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/index.js CHANGED
@@ -7,12 +7,10 @@ const commander_1 = require("commander");
7
7
  const deploy_1 = __importDefault(require("./deploy"));
8
8
  const download_1 = __importDefault(require("./download"));
9
9
  const setExternalIds_1 = __importDefault(require("./setExternalIds"));
10
- const validate_1 = __importDefault(require("./validate"));
11
10
  const tdCommand = new commander_1.Command('td');
12
11
  tdCommand
13
12
  .description('Template deployment commands')
14
13
  .addCommand(deploy_1.default)
15
14
  .addCommand(download_1.default)
16
- .addCommand(setExternalIds_1.default)
17
- .addCommand(validate_1.default);
15
+ .addCommand(setExternalIds_1.default);
18
16
  exports.default = tdCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "1.9.0-develop.3",
3
+ "version": "1.9.0",
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.67",
42
+ "@squiz/deployment-service-lib": "^1.1.5-alpha.57",
43
43
  "cli-color": "^2.0.1",
44
44
  "commander": "^9.0.0",
45
45
  "update-notifier": "^5.1.0"
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const validateCommand: Command;
3
- export default validateCommand;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const commander_1 = require("commander");
16
- const deployment_service_lib_1 = require("@squiz/deployment-service-lib");
17
- const cli_color_1 = __importDefault(require("cli-color"));
18
- const validateCommand = new commander_1.Command()
19
- .name('validate')
20
- .argument('<source>', 'folder/file path containing the files to validate')
21
- .action((source) => __awaiter(void 0, void 0, void 0, function* () {
22
- try {
23
- return yield (0, deployment_service_lib_1.cliValidate)(source);
24
- }
25
- catch (error) {
26
- if (error.message) {
27
- validateCommand.error(cli_color_1.default.red(error.message));
28
- }
29
- else {
30
- console.error(error);
31
- validateCommand.error('An unknown error occurred');
32
- }
33
- }
34
- }));
35
- exports.default = validateCommand;