nucleus-core-ts 0.9.30 → 0.9.31
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 +4 -1
- package/package.json +3 -2
package/bin/cli.ts
CHANGED
|
@@ -16,7 +16,10 @@ const DIM = '\x1b[2m'
|
|
|
16
16
|
const RED = '\x1b[31m'
|
|
17
17
|
const RESET = '\x1b[0m'
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
// Detect legacy `nucleus-generate config.json output/` invocation
|
|
20
|
+
const firstArg = process.argv[2] ?? ''
|
|
21
|
+
const looksLikeFile = firstArg.endsWith('.json') || firstArg.startsWith('./') || firstArg.startsWith('/')
|
|
22
|
+
const command = looksLikeFile ? 'generate' : firstArg
|
|
20
23
|
|
|
21
24
|
function showHelp() {
|
|
22
25
|
console.log(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.31",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
},
|
|
64
64
|
"bin": {
|
|
65
65
|
"nucleus-core-ts": "./bin/cli.ts",
|
|
66
|
-
"nucleus
|
|
66
|
+
"nucleus": "./bin/cli.ts",
|
|
67
|
+
"nucleus-generate": "./bin/cli.ts"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@react-three/fiber": "latest",
|