Skip to content

Commit 7db3b46

Browse files
committed
fix: restore original module filename case
1 parent 7b085c2 commit 7db3b46

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

generator/module.generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default async function (name) {
3737
{ tpl: "module/repository.interface.ejs", out: `domain/repositories/${camelCase(name)}Repository.js` },
3838
{ tpl: "module/repository.impl.ejs", out: `infrastructure/repositories/prisma${pascalCase(name)}Repository.js` },
3939
{ tpl: "module/dto.ejs", out: `application/dtos/${camelCase(name)}Dto.js` },
40-
{ tpl: "module/di.ejs", out: `${camelCase(name)}.module.js` }
40+
{ tpl: "module/di.ejs", out: `${name}.module.js` }
4141
];
4242

4343
for (const file of filesToGenerate) {

generator/resource.generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function (name) {
3636
{ tpl: "module/repository.interface.ejs", out: `domain/repositories/${camelCase(name)}Repository.js` },
3737
{ tpl: "module/repository.impl.ejs", out: `infrastructure/repositories/prisma${pascalCase(name)}Repository.js` },
3838
{ tpl: "module/dto.ejs", out: `application/dtos/${camelCase(name)}Dto.js` },
39-
{ tpl: "module/di.ejs", out: `${camelCase(name)}.module.js` }
39+
{ tpl: "module/di.ejs", out: `${name}.module.js` }
4040
];
4141

4242
for (const file of filesToGenerate) {

node_modules/.package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@saulpaulus17/node-module-generator",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"description": "CLI tool to grenerate modular scaffolding for nodejs projects following clean arsitecture principles. ",
55
"keywords": [
66
"nodejs",

0 commit comments

Comments
 (0)