@alevnyacow/nzmt 0.26.2 → 0.26.3
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 +9 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -409,6 +409,15 @@ function generateInfrastructure(upperCase, lowerCase) {
|
|
|
409
409
|
fs.mkdirSync(folder, { recursive: true })
|
|
410
410
|
|
|
411
411
|
fs.writeFileSync(path.resolve(folder, `${entityName}.ts`), [
|
|
412
|
+
`import { Module } from '@alevnyacow/nzmt'`,
|
|
413
|
+
'',
|
|
414
|
+
`export const ${lowerCase}InfrastructureMetadata = {`,
|
|
415
|
+
`\tname: '${upperCase}Infrastructure',`,
|
|
416
|
+
`\tschemas: {}`,
|
|
417
|
+
`} satisfies Module.Metadata`,
|
|
418
|
+
``,
|
|
419
|
+
`const methods = Module.methods(${lowerCase}InfrastructureMetadata)`,
|
|
420
|
+
'',
|
|
412
421
|
`export class ${upperCase} {`,
|
|
413
422
|
`\t`,
|
|
414
423
|
`}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alevnyacow/nzmt",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
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": {
|