@angular-devkit/architect-cli 0.1400.0-next.4 → 0.1400.0-next.5

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/bin/architect.js CHANGED
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  __setModuleDefault(result, mod);
27
27
  return result;
28
28
  };
29
- var __importDefault = (this && this.__importDefault) || function (mod) {
30
- return (mod && mod.__esModule) ? mod : { "default": mod };
31
- };
32
29
  Object.defineProperty(exports, "__esModule", { value: true });
33
30
  const architect_1 = require("@angular-devkit/architect");
34
31
  const node_1 = require("@angular-devkit/architect/node");
@@ -38,7 +35,7 @@ const ansiColors = __importStar(require("ansi-colors"));
38
35
  const fs_1 = require("fs");
39
36
  const path = __importStar(require("path"));
40
37
  const operators_1 = require("rxjs/operators");
41
- const yargs_parser_1 = __importDefault(require("yargs-parser"));
38
+ const yargs_parser_1 = __importStar(require("yargs-parser"));
42
39
  const progress_1 = require("../src/progress");
43
40
  function findUp(names, from) {
44
41
  if (!Array.isArray(names)) {
@@ -87,20 +84,18 @@ async function _executeTarget(parentLogger, workspace, root, argv, registry) {
87
84
  const architect = new architect_1.Architect(architectHost, registry);
88
85
  // Split a target into its parts.
89
86
  const { _: [targetStr = ''], help, ...options } = argv;
90
- const [project, target, configuration] = targetStr.split(':');
87
+ const [project, target, configuration] = targetStr.toString().split(':');
91
88
  const targetSpec = { project, target, configuration };
92
89
  const logger = new core_1.logging.Logger('jobs');
93
90
  const logs = [];
94
91
  logger.subscribe((entry) => logs.push({ ...entry, message: `${entry.name}: ` + entry.message }));
95
92
  // Camelize options as yargs will return the object in kebab-case when camel casing is disabled.
96
- // Casting temporary until https://github.com/DefinitelyTyped/DefinitelyTyped/pull/59065 is merged and released.
97
- const { camelCase, decamelize } = yargs_parser_1.default;
98
93
  const camelCasedOptions = {};
99
94
  for (const [key, value] of Object.entries(options)) {
100
95
  if (/[A-Z]/.test(key)) {
101
- throw new Error(`Unknown argument ${key}. Did you mean ${decamelize(key)}?`);
96
+ throw new Error(`Unknown argument ${key}. Did you mean ${(0, yargs_parser_1.decamelize)(key)}?`);
102
97
  }
103
- camelCasedOptions[camelCase(key)] = value;
98
+ camelCasedOptions[(0, yargs_parser_1.camelCase)(key)] = value;
104
99
  }
105
100
  const run = await architect.scheduleTarget(targetSpec, camelCasedOptions, { logger });
106
101
  const bars = new progress_1.MultiProgressBar(':name :bar (:current/:total) :status');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/architect-cli",
3
- "version": "0.1400.0-next.4",
3
+ "version": "0.1400.0-next.5",
4
4
  "description": "Angular Architect CLI",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "experimental": true,
@@ -19,8 +19,8 @@
19
19
  "tooling"
20
20
  ],
21
21
  "dependencies": {
22
- "@angular-devkit/architect": "0.1400.0-next.4",
23
- "@angular-devkit/core": "14.0.0-next.4",
22
+ "@angular-devkit/architect": "0.1400.0-next.5",
23
+ "@angular-devkit/core": "14.0.0-next.5",
24
24
  "ansi-colors": "4.1.1",
25
25
  "progress": "2.0.3",
26
26
  "rxjs": "6.6.7",
@@ -32,7 +32,7 @@
32
32
  "url": "https://github.com/angular/angular-cli.git"
33
33
  },
34
34
  "engines": {
35
- "node": "^12.20.0 || ^14.15.0 || >=16.10.0",
35
+ "node": "^14.15.0 || >=16.10.0",
36
36
  "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
37
37
  "yarn": ">= 1.13.0"
38
38
  },
package/src/progress.d.ts CHANGED
@@ -10,7 +10,9 @@ export declare class MultiProgressBar<Key, T> {
10
10
  private _status;
11
11
  private _stream;
12
12
  private _bars;
13
- constructor(_status: string, _stream?: NodeJS.WriteStream);
13
+ constructor(_status: string, _stream?: NodeJS.WriteStream & {
14
+ fd: 2;
15
+ });
14
16
  private _add;
15
17
  complete(id: Key): void;
16
18
  add(id: Key, data: T): void;