@angular-devkit/core 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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/core",
|
|
3
|
-
"version": "18.2.0-next.
|
|
3
|
+
"version": "18.2.0-next.2",
|
|
4
4
|
"description": "Angular DevKit - Core Utility Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"./*.js": "./*.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"ajv": "8.
|
|
33
|
+
"ajv": "8.17.1",
|
|
34
34
|
"ajv-formats": "3.0.1",
|
|
35
35
|
"jsonc-parser": "3.3.1",
|
|
36
36
|
"picomatch": "4.0.2",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"optional": true
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"packageManager": "yarn@4.3.
|
|
48
|
+
"packageManager": "yarn@4.3.1",
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
51
51
|
"url": "https://github.com/angular/angular-cli.git"
|
|
@@ -140,7 +140,7 @@ function parseProject(projectName, projectNode, context) {
|
|
|
140
140
|
for (const [name, value] of Object.entries(projectNodeValue)) {
|
|
141
141
|
switch (name) {
|
|
142
142
|
case 'targets':
|
|
143
|
-
case 'architect':
|
|
143
|
+
case 'architect': {
|
|
144
144
|
const nodes = (0, jsonc_parser_1.findNodeAtLocation)(projectNode, [name]);
|
|
145
145
|
if (!(0, utils_1.isJsonObject)(value) || !nodes) {
|
|
146
146
|
context.error(`Invalid "${name}" field found; expected an object.`, value);
|
|
@@ -150,6 +150,7 @@ function parseProject(projectName, projectNode, context) {
|
|
|
150
150
|
targets = parseTargetsObject(projectName, nodes, context);
|
|
151
151
|
jsonMetadata.hasLegacyTargetsName = name === 'architect';
|
|
152
152
|
break;
|
|
153
|
+
}
|
|
153
154
|
case 'prefix':
|
|
154
155
|
case 'root':
|
|
155
156
|
case 'sourceRoot':
|
|
@@ -95,14 +95,16 @@ function normalizeValue(value, type) {
|
|
|
95
95
|
switch (type) {
|
|
96
96
|
case 'project':
|
|
97
97
|
return convertJsonProject(value);
|
|
98
|
-
case 'projectcollection':
|
|
98
|
+
case 'projectcollection': {
|
|
99
99
|
const projects = convertJsonProjectCollection(value);
|
|
100
100
|
return isEmpty(projects) ? undefined : projects;
|
|
101
|
+
}
|
|
101
102
|
case 'target':
|
|
102
103
|
return convertJsonTarget(value);
|
|
103
|
-
case 'targetcollection':
|
|
104
|
+
case 'targetcollection': {
|
|
104
105
|
const targets = convertJsonTargetCollection(value);
|
|
105
106
|
return isEmpty(targets) ? undefined : targets;
|
|
107
|
+
}
|
|
106
108
|
default:
|
|
107
109
|
return value;
|
|
108
110
|
}
|