@alevnyacow/nzmt 0.26.1 → 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 +10 -1
- 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
|
`}`
|
|
@@ -836,7 +845,7 @@ function generateProvider(lowerCase, upperCase) {
|
|
|
836
845
|
`\tschemas: {}`,
|
|
837
846
|
`} satisfies Module.Metadata`,
|
|
838
847
|
``,
|
|
839
|
-
|
|
848
|
+
`const methods = Module.methods(${lowerCase}ProviderMetadata)`,
|
|
840
849
|
'',
|
|
841
850
|
`export class ${upperCase}Provider {`,
|
|
842
851
|
`\t`,
|
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": {
|