Skip to content

Commit

Permalink
fix(@schematics/angular): add strict option to ng-new
Browse files Browse the repository at this point in the history
Closes: #15654
  • Loading branch information
Alan authored and vikerman committed Sep 24, 2019
1 parent 44f4205 commit f1b87da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/schematics/angular/ng-new/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default function (options: NgNewOptions): Rule {
version: options.version,
newProjectRoot: options.newProjectRoot || 'projects',
minimal: options.minimal,
strict: options.strict,
};
const applicationOptions: ApplicationOptions = {
projectRoot: '',
Expand Down
5 changes: 5 additions & 0 deletions packages/schematics/angular/ng-new/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@
"type": "boolean",
"default": false,
"x-user-analytics": 14
},
"strict": {
"description": "Creates a workspace with stricter TypeScript compiler options.",
"type": "boolean",
"default": false
}
},
"required": ["name", "version"]
Expand Down

0 comments on commit f1b87da

Please sign in to comment.