@lark-apaas/fullstack-cli 1.1.0-alpha.0 → 1.1.0-alpha.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.
|
@@ -90,7 +90,7 @@ export async function run(options = {}) {
|
|
|
90
90
|
console.warn('[gen-db-schema] Postprocess failed:', error instanceof Error ? error.message : String(error));
|
|
91
91
|
}
|
|
92
92
|
try {
|
|
93
|
-
if (
|
|
93
|
+
if (options.enableNestModuleGenerate) {
|
|
94
94
|
const { parseAndGenerateNestResourceTemplate } = require('@lark-apaas/devtool-kits');
|
|
95
95
|
const tsConfigFilePath = path.resolve(process.cwd(), 'tsconfig.json');
|
|
96
96
|
const schemaFilePath = SCHEMA_FILE;
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ cli
|
|
|
22
22
|
})
|
|
23
23
|
.option('--schema-filter <schemas>', 'Schema filter, comma-separated')
|
|
24
24
|
.option('--tables-filter <tables>', 'Tables filter, comma-separated')
|
|
25
|
-
.option('--
|
|
25
|
+
.option('--enable-nest-module-generate', 'Enable generate NestJS module boilerplate')
|
|
26
26
|
.example('fullstack-cli gen-db-schema')
|
|
27
27
|
.example('fullstack-cli gen-db-schema --output custom/schema.ts')
|
|
28
28
|
.action(async (options) => {
|