Skip to content

Commit e46d9c5

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
1 parent 721b690 commit e46d9c5

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
@@ -188,6 +188,9 @@ export default function (options: LibraryOptions): Rule {
188188
flat: true,
189189
path: sourceDir,
190190
project: packageName,
191+
// Explicitly set the `typeSeparator` this also ensures that the generated files are valid even if the `module` schematic
192+
// inherits its `typeSeparator` from the workspace.
193+
typeSeparator: '-',
191194
}),
192195
schematic('component', {
193196
name: options.name,

0 commit comments

Comments
 (0)