@vercube/cli 0.0.42 → 0.0.45

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.
@@ -1,6 +1,5 @@
1
1
  import { defineCommand } from "citty";
2
2
  import { build, createVercube } from "@vercube/devkit";
3
-
4
3
  //#region src/commands/build.ts
5
4
  const buildCommand = defineCommand({
6
5
  meta: {
@@ -16,6 +15,5 @@ const buildCommand = defineCommand({
16
15
  await build(await createVercube({ build: { entry: ctx?.args?.entry ?? void 0 } }));
17
16
  }
18
17
  });
19
-
20
18
  //#endregion
21
- export { buildCommand };
19
+ export { buildCommand };
@@ -1,6 +1,5 @@
1
1
  import { defineCommand } from "citty";
2
2
  import { createDevServer, createVercube, watch } from "@vercube/devkit";
3
-
4
3
  //#region src/commands/dev.ts
5
4
  const devCommand = defineCommand({
6
5
  meta: {
@@ -13,6 +12,5 @@ const devCommand = defineCommand({
13
12
  await watch(app);
14
13
  }
15
14
  });
16
-
17
15
  //#endregion
18
- export { devCommand };
16
+ export { devCommand };
@@ -1,7 +1,6 @@
1
1
  import { defineCommand } from "citty";
2
2
  import { build, createVercube } from "@vercube/devkit";
3
3
  import { cliFetch } from "srvx/cli";
4
-
5
4
  //#region src/commands/fetch.ts
6
5
  const fetchCommand = defineCommand({
7
6
  meta: {
@@ -52,11 +51,10 @@ const fetchCommand = defineCommand({
52
51
  entry: ctx.args.entry,
53
52
  url: ctx.args.url,
54
53
  method: ctx.args.method,
55
- headers: ctx.args.headers?.split(",") ?? [],
54
+ header: ctx.args.headers?.split(",") ?? [],
56
55
  data: ctx.args.data
57
56
  });
58
57
  }
59
58
  });
60
-
61
59
  //#endregion
62
- export { fetchCommand };
60
+ export { fetchCommand };
package/dist/index.mjs CHANGED
@@ -1,24 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from "citty";
3
-
4
- //#region package.json
5
- var version = "0.0.42";
6
-
7
3
  //#endregion
8
4
  //#region src/index.ts
9
5
  runMain(defineCommand({
10
6
  meta: {
11
7
  name: "Vercube",
12
- version,
8
+ version: "0.0.45",
13
9
  description: "Vercube CLI"
14
10
  },
15
11
  subCommands: {
16
- build: () => import("./build-C-oLahSl.mjs").then(({ buildCommand }) => buildCommand),
17
- dev: () => import("./dev-Bh7mSI64.mjs").then(({ devCommand }) => devCommand),
18
- init: () => import("./init-DC0cXuj_.mjs").then(({ initCommand }) => initCommand),
19
- fetch: () => import("./fetch-BU56M7vi.mjs").then(({ fetchCommand }) => fetchCommand)
12
+ build: () => import("./build-BjzKMqLM.mjs").then(({ buildCommand }) => buildCommand),
13
+ dev: () => import("./dev-FNtcz-vW.mjs").then(({ devCommand }) => devCommand),
14
+ init: () => import("./init-BHbW8wC8.mjs").then(({ initCommand }) => initCommand),
15
+ fetch: () => import("./fetch-UyiACOy-.mjs").then(({ fetchCommand }) => fetchCommand)
20
16
  }
21
17
  }));
22
-
23
18
  //#endregion
24
- export { };
19
+ export {};
@@ -7,7 +7,6 @@ import { installDependencies } from "nypm";
7
7
  import { relative, resolve } from "pathe";
8
8
  import { hasTTY } from "std-env";
9
9
  import { x } from "tinyexec";
10
-
11
10
  //#region src/utils/logo.ts
12
11
  const startColor = {
13
12
  r: 149,
@@ -39,7 +38,6 @@ function applyGradient(icon, startColor, endColor) {
39
38
  }).join("\n");
40
39
  }
41
40
  const vercubeIcon = applyGradient(icon, startColor, endColor);
42
-
43
41
  //#endregion
44
42
  //#region src/commands/init.ts
45
43
  const logger = consola.withTag(colors.whiteBright(colors.bold(colors.bgGreenBright(" vercube "))));
@@ -179,6 +177,5 @@ const initCommand = defineCommand({
179
177
  if (ctx.args.shell) startShell(template.dir);
180
178
  }
181
179
  });
182
-
183
180
  //#endregion
184
- export { initCommand };
181
+ export { initCommand };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/cli",
3
- "version": "0.0.42",
3
+ "version": "0.0.45",
4
4
  "description": "CLI module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,16 +25,16 @@
25
25
  "vercube": "./dist/index.mjs"
26
26
  },
27
27
  "dependencies": {
28
- "citty": "0.2.0",
28
+ "citty": "0.2.1",
29
29
  "consola": "3.4.2",
30
- "giget": "3.1.1",
31
- "nypm": "0.6.4",
30
+ "giget": "3.1.2",
31
+ "nypm": "0.6.5",
32
32
  "pathe": "2.0.3",
33
- "std-env": "3.10.0",
34
- "srvx": "npm:srvx-nightly",
35
- "tinyexec": "1.0.2",
36
- "@vercube/logger": "0.0.42",
37
- "@vercube/devkit": "0.0.42"
33
+ "srvx": "0.11.12",
34
+ "std-env": "4.0.0",
35
+ "tinyexec": "1.0.4",
36
+ "@vercube/devkit": "0.0.45",
37
+ "@vercube/logger": "0.0.45"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"