We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Property targets is not allowed
1 parent a7506d1 commit 2fa9dfcCopy full SHA for 2fa9dfc
packages/angular/cli/lib/config/schema.json
@@ -327,12 +327,40 @@
327
"additionalProperties": {
328
"$ref": "#/definitions/project/definitions/target"
329
}
330
+ },
331
+ "targets": {
332
+ "type": "object",
333
+ "additionalProperties": {
334
+ "$ref": "#/definitions/project/definitions/target"
335
+ }
336
337
},
338
"required": [
339
"root",
340
"projectType"
341
],
342
+ "anyOf": [
343
+ {
344
+ "required": ["architect"],
345
+ "not": {
346
+ "required": ["targets"]
347
348
349
350
+ "required": ["targets"],
351
352
+ "required": ["architect"]
353
354
355
356
357
+ "required": [
358
+ "targets",
359
+ "architect"
360
+ ]
361
362
363
+ ],
364
"additionalProperties": false,
365
"patternProperties": {
366
"^[a-z]{1,3}-.*": {}
0 commit comments