@lark-apaas/fullstack-cli 1.1.0-alpha.0 → 1.1.0-alpha.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.
@@ -13,7 +13,7 @@
13
13
  * - DRIZZLE_TABLES_FILTER: 表过滤器(命令行选项优先)
14
14
  */
15
15
  export declare function run(options?: {
16
- disableNestModuleGenerate?: boolean;
16
+ enableNestModuleGenerate?: boolean;
17
17
  output?: string;
18
18
  schemaFilter?: string;
19
19
  tablesFilter?: string;
@@ -58,7 +58,7 @@ export async function run(options = {}) {
58
58
  __DRIZZLE_SCHEMA_PATH__: SCHEMA_FILE,
59
59
  };
60
60
  // 执行 drizzle-kit introspect
61
- const args = process.argv.slice(3);
61
+ const args = process.argv.slice(3).filter((arg) => !arg.startsWith('--enable-nest-module-generate'));
62
62
  const spawnArgs = ['--yes', 'drizzle-kit', 'introspect', '--config', configPath, ...args];
63
63
  const result = spawnSync('npx', spawnArgs, { stdio: 'inherit', env });
64
64
  if (result.error) {
@@ -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 (!options.disableNestModuleGenerate) {
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('--disable-nest-module-generate', 'Disable generate NestJS module boilerplate')
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.0-alpha.0",
3
+ "version": "1.1.0-alpha.2",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",