Skip to content

Commit

Permalink
fix(angular): respect skipPackageJson correctly in library generator (#…
Browse files Browse the repository at this point in the history
…22608)

(cherry picked from commit 5d5e88d)
  • Loading branch information
leosvelperez authored and FrozenPandaz committed Apr 2, 2024
1 parent e1f1396 commit 0006cd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/angular/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -96,6 +100,7 @@ export async function libraryGeneratorInternal(
await setupTailwindGenerator(tree, {
project: libraryOptions.name,
skipFormat: true,
skipPackageJson: libraryOptions.skipPackageJson,
});
}

Expand Down

0 comments on commit 0006cd1

Please sign in to comment.