@saulpaulus17/node-module-generator 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ export default async function (name) {
37
37
  { tpl: "module/repository.interface.ejs", out: `domain/repositories/${camelCase(name)}Repository.js` },
38
38
  { tpl: "module/repository.impl.ejs", out: `infrastructure/repositories/prisma${pascalCase(name)}Repository.js` },
39
39
  { 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` }
41
41
  ];
42
42
 
43
43
  for (const file of filesToGenerate) {
@@ -36,7 +36,7 @@ export default async function (name) {
36
36
  { tpl: "module/repository.interface.ejs", out: `domain/repositories/${camelCase(name)}Repository.js` },
37
37
  { tpl: "module/repository.impl.ejs", out: `infrastructure/repositories/prisma${pascalCase(name)}Repository.js` },
38
38
  { 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` }
40
40
  ];
41
41
 
42
42
  for (const file of filesToGenerate) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saulpaulus17/node-module-generator",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "CLI tool to grenerate modular scaffolding for nodejs projects following clean arsitecture principles. ",
5
5
  "keywords": [
6
6
  "nodejs",
@@ -21,7 +21,7 @@
21
21
  "homepage": "https://github.com/saul-paulus/node-module-generator#readme",
22
22
  "main": "index.js",
23
23
  "bin": {
24
- "nmg": "./bin/cli.js"
24
+ "nmg": "bin/cli.js"
25
25
  },
26
26
  "scripts": {
27
27
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"