Skip to content

Commit 02b0506

Browse files
committed
fix(@schematics/angular): correct configure the typeSeparator in the library schematic
Prior to this the `typeSeparator` could have been inherited from the workspace setting which would cause the file references to be incorrect. Closes #30886 (cherry picked from commit e46d9c5)
1 parent 584bc1d commit 02b0506

File tree

1 file changed

+3
-0
lines changed
  • packages/schematics/angular/library

1 file changed

+3
-0
lines changed

packages/schematics/angular/library/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ export default function (options: LibraryOptions): Rule {
198198
flat: true,
199199
path: sourceDir,
200200
project: packageName,
201+
// Explicitly set the `typeSeparator` this also ensures that the generated files are valid even if the `module` schematic
202+
// inherits its `typeSeparator` from the workspace.
203+
typeSeparator: '-',
201204
}),
202205
schematic('component', {
203206
name: options.name,

0 commit comments

Comments
 (0)