From 6a1c80f49a3232e7f550e40ee8f8128cd958ccaa Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 24 Sep 2019 07:58:09 +0200 Subject: [PATCH] fix(@schematics/angular): add strict option to ng-new Closes: #15654 --- packages/schematics/angular/ng-new/index.ts | 1 + packages/schematics/angular/ng-new/schema.json | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/packages/schematics/angular/ng-new/index.ts b/packages/schematics/angular/ng-new/index.ts index e02a4303571d..ee9d2a60b062 100644 --- a/packages/schematics/angular/ng-new/index.ts +++ b/packages/schematics/angular/ng-new/index.ts @@ -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: '', diff --git a/packages/schematics/angular/ng-new/schema.json b/packages/schematics/angular/ng-new/schema.json index cd80048417eb..1bfd7c25298d 100644 --- a/packages/schematics/angular/ng-new/schema.json +++ b/packages/schematics/angular/ng-new/schema.json @@ -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"]