@vercube/cli 0.0.20 → 0.0.22
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/dist/index.d.mts +2 -1
- package/dist/index.mjs +12 -8
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export {};
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { installDependencies } from "nypm";
|
|
|
11
11
|
import { x } from "tinyexec";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.0.
|
|
14
|
+
var version = "0.0.21";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/commands/build.ts
|
|
@@ -20,8 +20,13 @@ const buildCommand = defineCommand({
|
|
|
20
20
|
name: "build",
|
|
21
21
|
description: "Build the project"
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
args: { entry: {
|
|
24
|
+
type: "string",
|
|
25
|
+
description: "Entry file",
|
|
26
|
+
default: "./src/index.ts"
|
|
27
|
+
} },
|
|
28
|
+
run: async (ctx) => {
|
|
29
|
+
const app = await createVercube({ build: { entry: ctx.args.entry } });
|
|
25
30
|
await build(app);
|
|
26
31
|
}
|
|
27
32
|
});
|
|
@@ -147,17 +152,15 @@ const initCommand = defineCommand({
|
|
|
147
152
|
]
|
|
148
153
|
});
|
|
149
154
|
switch (selectedAction) {
|
|
150
|
-
case "Override its contents":
|
|
155
|
+
case "Override its contents":
|
|
151
156
|
shouldForce = true;
|
|
152
157
|
break;
|
|
153
|
-
|
|
154
|
-
case "Select different directory": {
|
|
158
|
+
case "Select different directory":
|
|
155
159
|
templateDownloadPath = resolve(cwd, await logger.prompt("Please specify a different directory:", {
|
|
156
160
|
type: "text",
|
|
157
161
|
cancel: "reject"
|
|
158
162
|
}).catch(() => process.exit(1)));
|
|
159
163
|
break;
|
|
160
|
-
}
|
|
161
164
|
default: process.exit(1);
|
|
162
165
|
}
|
|
163
166
|
}
|
|
@@ -239,4 +242,5 @@ const main = defineCommand({
|
|
|
239
242
|
});
|
|
240
243
|
runMain(main);
|
|
241
244
|
|
|
242
|
-
//#endregion
|
|
245
|
+
//#endregion
|
|
246
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "CLI module for Vercube framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"citty": "0.1.6",
|
|
29
29
|
"consola": "3.4.2",
|
|
30
30
|
"giget": "2.0.0",
|
|
31
|
-
"nypm": "0.6.
|
|
31
|
+
"nypm": "0.6.1",
|
|
32
32
|
"pathe": "2.0.3",
|
|
33
33
|
"std-env": "3.9.0",
|
|
34
34
|
"tinyexec": "1.0.1",
|
|
35
|
-
"@vercube/devkit": "0.0.
|
|
35
|
+
"@vercube/devkit": "0.0.22"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|