@fullstackunicorn/root 1.0.2 → 1.0.3
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/index.cmd.js +7 -8
- package/package.json +1 -1
package/index.cmd.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '@fullstackunicorn/initialize'
|
|
3
3
|
F3.service = '@fullstackunicorn/root'
|
|
4
|
-
import {
|
|
4
|
+
import { generate, verify, upgrade } from '#@/index.js'
|
|
5
5
|
|
|
6
6
|
const [nodePath, nodeScriptPath, command, ...args] = process.argv
|
|
7
7
|
|
|
8
8
|
if (!command) {
|
|
9
9
|
console.error('Error: invalid arguments. See documentation.')
|
|
10
|
-
console.error('Usage: yarn root <
|
|
10
|
+
console.error('Usage: yarn root <generate|verify|upgrade> [args...]')
|
|
11
11
|
process.exit(1)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
try {
|
|
15
15
|
|
|
16
|
-
if (command === '
|
|
17
|
-
|
|
18
|
-
await init.run(foldername ?? null)
|
|
16
|
+
if (command === 'generate') {
|
|
17
|
+
await generate.run(...args)
|
|
19
18
|
process.exit(0)
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
if (command === '
|
|
23
|
-
await
|
|
21
|
+
if (command === 'verify') {
|
|
22
|
+
await verify.run(...args)
|
|
24
23
|
process.exit(0)
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -31,8 +30,8 @@ try {
|
|
|
31
30
|
|
|
32
31
|
console.error(`Error: command "${command}" not found.`)
|
|
33
32
|
console.error('Available commands:')
|
|
34
|
-
console.error(' - init [foldername]')
|
|
35
33
|
console.error(' - generate')
|
|
34
|
+
console.error(' - verify')
|
|
36
35
|
console.error(' - upgrade')
|
|
37
36
|
process.exit(1)
|
|
38
37
|
|
package/package.json
CHANGED