Skip to content

Commit f1b87da

Browse files
Alanvikerman
Alan
authored andcommitted
fix(@schematics/angular): add strict option to ng-new
Closes: #15654
1 parent 44f4205 commit f1b87da

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/schematics/angular/ng-new/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default function (options: NgNewOptions): Rule {
4242
version: options.version,
4343
newProjectRoot: options.newProjectRoot || 'projects',
4444
minimal: options.minimal,
45+
strict: options.strict,
4546
};
4647
const applicationOptions: ApplicationOptions = {
4748
projectRoot: '',

packages/schematics/angular/ng-new/schema.json

+5
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@
127127
"type": "boolean",
128128
"default": false,
129129
"x-user-analytics": 14
130+
},
131+
"strict": {
132+
"description": "Creates a workspace with stricter TypeScript compiler options.",
133+
"type": "boolean",
134+
"default": false
130135
}
131136
},
132137
"required": ["name", "version"]

0 commit comments

Comments
 (0)