From effdabcda5d4e366b1a902cb309f5e60d677ce52 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 4 Mar 2021 10:09:56 +0100 Subject: [PATCH] fix(@angular/cli): add ng-packagr builder schema in IDE schema --- packages/angular/cli/lib/config/schema.json | 37 ++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/packages/angular/cli/lib/config/schema.json b/packages/angular/cli/lib/config/schema.json index 60f1af90c336..4ffdf5cd067e 100644 --- a/packages/angular/cli/lib/config/schema.json +++ b/packages/angular/cli/lib/config/schema.json @@ -492,7 +492,8 @@ "@angular-devkit/build-angular:karma", "@angular-devkit/build-angular:protractor", "@angular-devkit/build-angular:server", - "@angular-devkit/build-angular:tslint" + "@angular-devkit/build-angular:tslint", + "@angular-devkit/build-angular:ng-packagr" ] } }, @@ -598,6 +599,17 @@ "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" } } } + }, + { + "type": "object", + "properties": { + "builder": { "const": "@angular-devkit/build-angular:ng-packagr" }, + "options": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" }, + "configurations": { + "type": "object", + "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" } + } + } } ] } @@ -2096,6 +2108,29 @@ } }, "additionalProperties": false + }, + "ngPackagr": { + "description": "ng-packagr target options for Build Architect. Use to build library projects.", + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "The file path for the ng-packagr configuration file, relative to the current workspace." + }, + "tsConfig": { + "type": "string", + "description": "The full path for the TypeScript configuration file, relative to the current workspace." + }, + "watch": { + "type": "boolean", + "description": "Run build when files change.", + "default": false + } + }, + "additionalProperties": false, + "required": [ + "project" + ] } } },