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 +7 -5
- package/dist/index.js +4 -4
- package/dist/nucleus.config.d.ts +1 -1
- package/dist/src/ElysiaPlugin/routes/auth/index.d.ts +1 -0
- package/dist/src/ElysiaPlugin/routes/entity/types.d.ts +1 -0
- package/dist/src/ElysiaPlugin/utils.d.ts +4 -2
- package/dist/src/Managers/Azure/AzureTokenProvider.d.ts +27 -0
- package/dist/src/Managers/Azure/index.d.ts +1 -0
- package/dist/src/Managers/Postgre/index.d.ts +4 -1
- package/dist/src/Managers/Redis/index.d.ts +4 -0
- package/dist/src/Managers/index.d.ts +1 -0
- package/package.json +4 -3
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
|
-
|
|
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}
|
|
38
|
-
${DIM}
|
|
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
|
-
|
|
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':
|