Skip to content

Commit ebf90ee

Browse files
author
Angular Builds
committed
57d93fb7d fix(@schematics/angular): mark project as required option
1 parent 522d6cc commit ebf90ee

37 files changed

+39
-39
lines changed

class/schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface Schema {
1313
/**
1414
* The name of the project.
1515
*/
16-
project?: string;
16+
project: string;
1717
/**
1818
* Do not create "spec.ts" test files for the new class.
1919
*/

class/schema.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

class/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
4343
}
4444
},
45-
"required": ["name"]
45+
"required": ["name", "project"]
4646
}

component/schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface Schema {
4848
/**
4949
* The name of the project.
5050
*/
51-
project?: string;
51+
project: string;
5252
/**
5353
* The HTML selector to use for this component.
5454
*/

component/schema.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@
136136
"x-user-analytics": 19
137137
}
138138
},
139-
"required": ["name"]
139+
"required": ["name", "project"]
140140
}

directive/schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface Schema {
3030
/**
3131
* The name of the project.
3232
*/
33-
project?: string;
33+
project: string;
3434
/**
3535
* The HTML selector to use for this directive.
3636
*/

directive/schema.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

directive/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@
8585
"x-user-analytics": 19
8686
}
8787
},
88-
"required": ["name"]
88+
"required": ["name", "project"]
8989
}

enum/schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface Schema {
1414
* The name of the project in which to create the enum. Default is the configured default
1515
* project for the workspace.
1616
*/
17-
project?: string;
17+
project: string;
1818
/**
1919
* Adds a developer-defined type to the filename, in the format "name.type.ts".
2020
*/

0 commit comments

Comments
 (0)