@angular-devkit/schematics 18.2.0-next.0 → 18.2.0-next.2
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 +3 -3
- package/src/engine/engine.js +5 -6
- package/src/tree/action.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "18.2.0-next.
|
|
3
|
+
"version": "18.2.0-next.2",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"tooling"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "18.2.0-next.
|
|
21
|
+
"@angular-devkit/core": "18.2.0-next.2",
|
|
22
22
|
"jsonc-parser": "3.3.1",
|
|
23
23
|
"magic-string": "0.30.10",
|
|
24
24
|
"ora": "5.4.1",
|
|
25
25
|
"rxjs": "7.8.1"
|
|
26
26
|
},
|
|
27
|
-
"packageManager": "yarn@4.3.
|
|
27
|
+
"packageManager": "yarn@4.3.1",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
30
|
"url": "https://github.com/angular/angular-cli.git"
|
package/src/engine/engine.js
CHANGED
|
@@ -273,13 +273,12 @@ class SchematicEngine {
|
|
|
273
273
|
return () => new null_1.NullTree();
|
|
274
274
|
case 'empty:':
|
|
275
275
|
return () => (0, static_1.empty)();
|
|
276
|
-
default:
|
|
277
|
-
const hostSource = this._host.createSourceFromUrl(url, context);
|
|
278
|
-
if (!hostSource) {
|
|
279
|
-
throw new UnknownUrlSourceProtocol(url.toString());
|
|
280
|
-
}
|
|
281
|
-
return hostSource;
|
|
282
276
|
}
|
|
277
|
+
const hostSource = this._host.createSourceFromUrl(url, context);
|
|
278
|
+
if (!hostSource) {
|
|
279
|
+
throw new UnknownUrlSourceProtocol(url.toString());
|
|
280
|
+
}
|
|
281
|
+
return hostSource;
|
|
283
282
|
}
|
|
284
283
|
executePostTasks() {
|
|
285
284
|
const executors = new Map();
|
package/src/tree/action.js
CHANGED
|
@@ -59,7 +59,7 @@ class ActionList {
|
|
|
59
59
|
case 'd':
|
|
60
60
|
toDelete.add(action.path);
|
|
61
61
|
break;
|
|
62
|
-
case 'r':
|
|
62
|
+
case 'r': {
|
|
63
63
|
const maybeCreate = toCreate.get(action.path);
|
|
64
64
|
const maybeOverwrite = toOverwrite.get(action.path);
|
|
65
65
|
if (maybeCreate) {
|
|
@@ -84,6 +84,7 @@ class ActionList {
|
|
|
84
84
|
toRename.set(action.path, action.to);
|
|
85
85
|
}
|
|
86
86
|
break;
|
|
87
|
+
}
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
this._actions = [];
|