-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
Description
Command
generate
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
^19
Description
When a library is generated using ng generate library
, there is an Issue/bug with export path of the library module in public-api.ts
.
Minimal Reproduction
To reproduce this issue:
- Go to this stackblitz project
- Open new terminal and run
ng generate library lib-gen-test --standalone=false
- After library is successfully created, go to
public-api.ts
file of the new library and notice the issue with export module statement.
New library name: "lib-gen-test, you should see a lib-gen-test.module.ts file created in the library.
Expectation:
I should see export * from './lib/lib-gen-test.module'; in public-api.ts file.
Current Behavior/Issue:
I see export * from './lib/lib-gen-test-module'; in public-api.ts file.
Instead of dot(.) i am seeing a dash(-) in module path.
Exception or Error
Your Environment
Package Version
------------------------------------------------------
@angular-devkit/architect 0.2000.0
@angular-devkit/core 20.0.0
@angular-devkit/schematics 20.0.0
@schematics/angular 20.0.0
rxjs 7.8.2
typescript 5.8.2
zone.js 0.15.0
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix