SamagraX-Stencil / stencil-cli

NestJS CLI on steroids for stencil 🍹
https://stencil.samagra.io/cli/introduction
Other
3 stars 9 forks source link

Exported class name and service name conflicting. #35

Closed shivankurchavan closed 3 days ago

shivankurchavan commented 1 week ago

Current behavior: when service is generated using stencil g service-prisma , the cli asks for a name for that service. when given a name, it is exporting the service in form of [given service name]service format. but the file which is inside service folder is exporting PrismaService by default.

Expected behavior: Cli should not ask for naming the service.

note: here in screen we can see that p1 named service was generated but PrismaService is getting exported

screenshots:

service1 service2

drohan2536 commented 1 week ago

I would like to try this issue. @techsavvyash do we have to update the filename with the given user input and call it in the app.module.ts or we have to disable the user input and update the filename with default "Prisma.service.ts".