Skip to content

Commit

Permalink
fix(angular): respect skipPackageJson correctly in library generator (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Apr 2, 2024
1 parent 2aed31f commit 5d5e88d
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 5d5e88d

Please sign in to comment.