From 0006cd1ce2ec9b159fe54fdcb41c1efedc0ad0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Tue, 2 Apr 2024 11:32:47 +0200 Subject: [PATCH] fix(angular): respect skipPackageJson correctly in library generator (#22608) (cherry picked from commit 5d5e88df903d47100174f44176c55dea2b35244c) --- packages/angular/src/generators/library/library.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/angular/src/generators/library/library.ts b/packages/angular/src/generators/library/library.ts index 871e21875d014..87769e830db0b 100644 --- a/packages/angular/src/generators/library/library.ts +++ b/packages/angular/src/generators/library/library.ts @@ -71,7 +71,11 @@ export async function libraryGeneratorInternal( const pkgVersions = versions(tree); - await jsInitGenerator(tree, { ...options, js: false, skipFormat: true }); + await jsInitGenerator(tree, { + ...libraryOptions, + js: false, + skipFormat: true, + }); await init(tree, { ...libraryOptions, skipFormat: true }); ensureAngularDependencies(tree); @@ -96,6 +100,7 @@ export async function libraryGeneratorInternal( await setupTailwindGenerator(tree, { project: libraryOptions.name, skipFormat: true, + skipPackageJson: libraryOptions.skipPackageJson, }); }