@angular-devkit/schematics 20.0.0-rc.3 → 20.0.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "20.0.0
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"tooling"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "20.0.0
|
|
21
|
+
"@angular-devkit/core": "20.0.0",
|
|
22
22
|
"jsonc-parser": "3.3.1",
|
|
23
23
|
"magic-string": "0.30.17",
|
|
24
|
-
"ora": "
|
|
24
|
+
"ora": "8.2.0",
|
|
25
25
|
"rxjs": "7.8.2"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
@@ -49,7 +49,6 @@ const core_1 = require("@angular-devkit/core");
|
|
|
49
49
|
const node_child_process_1 = require("node:child_process");
|
|
50
50
|
const path = __importStar(require("node:path"));
|
|
51
51
|
const ora_1 = __importDefault(require("ora"));
|
|
52
|
-
const rxjs_1 = require("rxjs");
|
|
53
52
|
const src_1 = require("../../src");
|
|
54
53
|
const packageManagers = {
|
|
55
54
|
'npm': {
|
|
@@ -148,7 +147,7 @@ function default_1(factoryOptions = {}) {
|
|
|
148
147
|
if (factoryOptions.force) {
|
|
149
148
|
args.push('--force');
|
|
150
149
|
}
|
|
151
|
-
return new
|
|
150
|
+
return new Promise((resolve, reject) => {
|
|
152
151
|
const spinner = (0, ora_1.default)({
|
|
153
152
|
text: `Installing packages (${taskPackageManagerName})...`,
|
|
154
153
|
// Workaround for https://github.com/sindresorhus/ora/issues/136.
|
|
@@ -158,15 +157,14 @@ function default_1(factoryOptions = {}) {
|
|
|
158
157
|
if (code === 0) {
|
|
159
158
|
spinner.succeed('Packages installed successfully.');
|
|
160
159
|
spinner.stop();
|
|
161
|
-
|
|
162
|
-
obs.complete();
|
|
160
|
+
resolve();
|
|
163
161
|
}
|
|
164
162
|
else {
|
|
165
163
|
if (options.hideOutput) {
|
|
166
164
|
bufferedOutput.forEach(({ stream, data }) => stream.write(data));
|
|
167
165
|
}
|
|
168
166
|
spinner.fail('Package install failed, see above.');
|
|
169
|
-
|
|
167
|
+
reject(new src_1.UnsuccessfulWorkflowExecution());
|
|
170
168
|
}
|
|
171
169
|
});
|
|
172
170
|
if (options.hideOutput) {
|