nucleus-core-ts 0.9.31 → 0.9.33

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.ts CHANGED
@@ -26,7 +26,7 @@ function showHelp() {
26
26
  ${CYAN}${BOLD}Nucleus CLI${RESET} ${DIM}(nucleus-core-ts)${RESET}
27
27
 
28
28
  ${BOLD}Usage:${RESET}
29
- bunx nucleus-core-ts ${CYAN}<command>${RESET}
29
+ npx nucleus-core-ts ${CYAN}<command>${RESET}
30
30
 
31
31
  ${BOLD}Commands:${RESET}
32
32
  ${CYAN}scaffold${RESET} Interactive project scaffolding (API + frontend + k8s + pipelines)
@@ -34,8 +34,8 @@ ${BOLD}Commands:${RESET}
34
34
  ${CYAN}help${RESET} Show this help message
35
35
 
36
36
  ${BOLD}Examples:${RESET}
37
- ${DIM}bunx nucleus-core-ts scaffold${RESET}
38
- ${DIM}bunx nucleus-core-ts generate src/config.json src/drizzle${RESET}
37
+ ${DIM}npx nucleus-core-ts scaffold${RESET}
38
+ ${DIM}npx nucleus-core-ts generate src/config.json src/drizzle${RESET}
39
39
  `)
40
40
  }
41
41
 
@@ -60,9 +60,11 @@ switch (command) {
60
60
  break
61
61
 
62
62
  case 'generate':
63
- case 'gen':
64
- await run(join(rootDir, 'scripts', 'generate-schema.ts'), process.argv.slice(3))
63
+ case 'gen': {
64
+ const genArgs = looksLikeFile ? process.argv.slice(2) : process.argv.slice(3)
65
+ await run(join(rootDir, 'scripts', 'generate-schema.ts'), genArgs)
65
66
  break
67
+ }
66
68
 
67
69
  case 'help':
68
70
  case '--help':