From d6f49ea62497c923a1ef5c12ac6636995147843c Mon Sep 17 00:00:00 2001 From: Stian Morsund Date: Fri, 6 May 2022 10:08:52 +0200 Subject: [PATCH] fix(angular): support skipPackageJson for library generation (#10179) --- packages/angular/src/generators/library/library.ts | 3 ++- packages/angular/src/generators/library/schema.d.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/angular/src/generators/library/library.ts b/packages/angular/src/generators/library/library.ts index 5e79c815d3716..1176b4fb5dd04 100644 --- a/packages/angular/src/generators/library/library.ts +++ b/packages/angular/src/generators/library/library.ts @@ -58,7 +58,8 @@ export async function libraryGenerator(host: Tree, schema: Partial) { name: options.name, prefix: options.prefix, entryFile: 'index', - skipPackageJson: !(options.publishable || options.buildable), + skipPackageJson: + options.skipPackageJson || !(options.publishable || options.buildable), skipTsConfig: true, }); diff --git a/packages/angular/src/generators/library/schema.d.ts b/packages/angular/src/generators/library/schema.d.ts index afca2594543a8..99f51f9ae196d 100644 --- a/packages/angular/src/generators/library/schema.d.ts +++ b/packages/angular/src/generators/library/schema.d.ts @@ -29,4 +29,5 @@ export interface Schema { compilationMode?: 'full' | 'partial'; setParserOptionsProject?: boolean; skipModule?: boolean; + skipPackageJson?: boolean; }