@alevnyacow/nzmt 0.25.0 → 0.25.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.
- package/bin/cli.js +4 -4
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -412,7 +412,7 @@ function generateInfrastructure(upperCase, lowerCase) {
|
|
|
412
412
|
`export class ${upperCase} {`,
|
|
413
413
|
`\t`,
|
|
414
414
|
`}`
|
|
415
|
-
])
|
|
415
|
+
].join('\n'))
|
|
416
416
|
|
|
417
417
|
fs.writeFileSync(path.resolve(folder, `${entityName}.mock.ts`), [
|
|
418
418
|
`import { ${upperCase} } from './${entityName}'`,
|
|
@@ -420,12 +420,12 @@ function generateInfrastructure(upperCase, lowerCase) {
|
|
|
420
420
|
`export class Mock${upperCase} implements ${upperCase} {`,
|
|
421
421
|
`\t`,
|
|
422
422
|
`}`
|
|
423
|
-
])
|
|
423
|
+
].join('\n'))
|
|
424
424
|
|
|
425
425
|
fs.writeFileSync(path.resolve(folder, `index.ts`), [
|
|
426
426
|
`export * from './${entityName}'`,
|
|
427
427
|
`export * from './${entityName}.mock'`
|
|
428
|
-
])
|
|
428
|
+
].join('\n'))
|
|
429
429
|
|
|
430
430
|
// Update DI
|
|
431
431
|
|
|
@@ -434,7 +434,7 @@ function generateInfrastructure(upperCase, lowerCase) {
|
|
|
434
434
|
insertBeforeLineInFile(
|
|
435
435
|
diEntriesPath,
|
|
436
436
|
'type DIEntries =',
|
|
437
|
-
`import { ${upperCase} } from '@${config?.paths?.infrastructure}/${entityName}'`
|
|
437
|
+
`import { ${upperCase}, Mock${upperCase} } from '@${config?.paths?.infrastructure}/${entityName}'`
|
|
438
438
|
)
|
|
439
439
|
|
|
440
440
|
insertAfterLineInFile(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alevnyacow/nzmt",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"description": "Next Zod Modules Toolkit",
|
|
5
5
|
"keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
|
|
6
6
|
"repository": {
|