@alevnyacow/nzmt 0.26.0 → 0.26.1
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 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -829,15 +829,17 @@ function generateProvider(lowerCase, upperCase) {
|
|
|
829
829
|
|
|
830
830
|
// Provider
|
|
831
831
|
fs.writeFileSync(path.resolve(folder, `${entityName}.provider.ts`), [
|
|
832
|
-
`import { Module } from '@alevnyacow/nzmt'
|
|
832
|
+
`import { Module } from '@alevnyacow/nzmt'`,
|
|
833
833
|
'',
|
|
834
834
|
`export const ${lowerCase}ProviderMetadata = {`,
|
|
835
835
|
`\tname: '${upperCase}Provider',`,
|
|
836
836
|
`\tschemas: {}`,
|
|
837
837
|
`} satisfies Module.Metadata`,
|
|
838
838
|
``,
|
|
839
|
+
'const methods Module.methods(${lowerCase}ProviderMetadata)',
|
|
840
|
+
'',
|
|
839
841
|
`export class ${upperCase}Provider {`,
|
|
840
|
-
`\
|
|
842
|
+
`\t`,
|
|
841
843
|
`}`
|
|
842
844
|
].join('\n'))
|
|
843
845
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alevnyacow/nzmt",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
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": {
|