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, }); }