@batijs/cli 0.0.118 → 0.0.120

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.
@@ -42,8 +42,8 @@ var require_package = __commonJS({
42
42
  },
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:^",
45
- "@typescript-eslint/eslint-plugin": "^6.11.0",
46
- "@typescript-eslint/parser": "^6.11.0",
45
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
46
+ "@typescript-eslint/parser": "^6.12.0",
47
47
  eslint: "^8.54.0"
48
48
  },
49
49
  dependencies: {
@@ -41,11 +41,11 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.18.1",
44
+ "@auth/core": "^0.18.3",
45
45
  "@batijs/trpc": "workspace:*",
46
46
  "@batijs/compile": "workspace:*",
47
47
  "@hattip/adapter-node": "^0.0.35",
48
- "@trpc/server": "^10.43.6",
48
+ "@trpc/server": "^10.44.1",
49
49
  "@types/express": "^4.17.21",
50
50
  "@types/node": "^18.18.9",
51
51
  esno: "^4.0.0",
@@ -53,7 +53,7 @@ var require_package = __commonJS({
53
53
  telefunc: "^0.1.64",
54
54
  vike: "^0.4.147",
55
55
  "vike-authjs": "^0.1.1",
56
- vite: "^4.5.0"
56
+ vite: "^5.0.2"
57
57
  },
58
58
  dependencies: {
59
59
  "@batijs/core": "workspace:*"
@@ -41,20 +41,20 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.18.1",
44
+ "@auth/core": "^0.18.3",
45
45
  "@batijs/trpc": "workspace:^",
46
46
  "@batijs/compile": "workspace:*",
47
47
  "@hattip/polyfills": "^0.0.35",
48
- "@trpc/server": "^10.43.6",
48
+ "@trpc/server": "^10.44.1",
49
49
  "@types/node": "^18.18.9",
50
50
  "@types/serve-static": "^1.15.5",
51
51
  esno: "^4.0.0",
52
- h3: "^1.8.2",
52
+ h3: "^1.9.0",
53
53
  "serve-static": "^1.15.0",
54
54
  telefunc: "^0.1.64",
55
55
  vike: "^0.4.147",
56
56
  "vike-authjs": "^0.1.1",
57
- vite: "^4.5.0"
57
+ vite: "^5.0.2"
58
58
  },
59
59
  dependencies: {
60
60
  "@batijs/core": "workspace:*"
@@ -41,20 +41,20 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.18.1",
44
+ "@auth/core": "^0.18.3",
45
45
  "@batijs/trpc": "workspace:^",
46
46
  "@batijs/compile": "workspace:*",
47
47
  "@hattip/adapter-node": "^0.0.35",
48
48
  "@hattip/core": "^0.0.35",
49
49
  "@hattip/router": "^0.0.35",
50
50
  "@hattip/vite": "^0.0.35",
51
- "@trpc/server": "^10.43.6",
51
+ "@trpc/server": "^10.44.1",
52
52
  "@types/node": "^18.18.9",
53
53
  hattip: "^0.0.33",
54
54
  telefunc: "^0.1.64",
55
55
  vike: "^0.4.147",
56
56
  "vike-authjs": "^0.1.1",
57
- vite: "^4.5.0"
57
+ vite: "^5.0.2"
58
58
  },
59
59
  dependencies: {
60
60
  "@batijs/core": "workspace:*"
@@ -43,21 +43,21 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@babel/core": "^7.23.3",
45
45
  "@babel/plugin-syntax-flow": "^7.23.3",
46
- "@babel/plugin-transform-react-jsx": "^7.22.15",
46
+ "@babel/plugin-transform-react-jsx": "^7.23.4",
47
47
  "@batijs/compile": "workspace:*",
48
48
  "@types/node": "^18.18.9",
49
- "@types/react": "^18.2.37",
50
- "@types/react-dom": "^18.2.15",
49
+ "@types/react": "^18.2.38",
50
+ "@types/react-dom": "^18.2.17",
51
51
  "@vitejs/plugin-react": "^4.2.0",
52
52
  "cross-fetch": "^4.0.0",
53
53
  "eslint-config-react-app": "^7.0.1",
54
54
  react: "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
56
  tailwindcss: "^3.3.5",
57
- typescript: "^5.2.2",
57
+ typescript: "^5.3.2",
58
58
  vike: "^0.4.147",
59
59
  "vike-react": "^0.3.4",
60
- vite: "^4.5.0"
60
+ vite: "^5.0.2"
61
61
  },
62
62
  dependencies: {
63
63
  "@batijs/core": "workspace:*"
@@ -11,8 +11,8 @@
11
11
  "keywords": [],
12
12
  "author": "",
13
13
  "devDependencies": {
14
- "typescript": "^5.2.2",
15
- "vite": "^4.5.0"
14
+ "typescript": "^5.3.2",
15
+ "vite": "^5.0.2"
16
16
  },
17
17
  "dependencies": {}
18
18
  }
@@ -45,12 +45,12 @@ var require_package = __commonJS({
45
45
  "@types/node": "^18.18.9",
46
46
  "cross-fetch": "^4.0.0",
47
47
  "eslint-plugin-solid": "^0.13.0",
48
- "solid-js": "^1.8.5",
48
+ "solid-js": "^1.8.6",
49
49
  tailwindcss: "^3.3.5",
50
- typescript: "^5.2.2",
50
+ typescript: "^5.3.2",
51
51
  vike: "^0.4.147",
52
- "vike-solid": "^0.2.5",
53
- vite: "^4.5.0",
52
+ "vike-solid": "^0.2.6",
53
+ vite: "^5.0.2",
54
54
  "vite-plugin-solid": "^2.7.2"
55
55
  },
56
56
  dependencies: {
@@ -44,11 +44,11 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.18.9",
46
46
  autoprefixer: "^10.4.16",
47
- daisyui: "^4.4.2",
47
+ daisyui: "^4.4.10",
48
48
  postcss: "^8.4.31",
49
49
  tailwindcss: "^3.3.5",
50
50
  vike: "^0.4.147",
51
- vite: "^4.5.0"
51
+ vite: "^5.0.2"
52
52
  },
53
53
  dependencies: {
54
54
  "@batijs/core": "workspace:*"
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.18.9",
46
46
  telefunc: "^0.1.64",
47
- vite: "^4.5.0",
47
+ vite: "^5.0.2",
48
48
  vike: "^0.4.147"
49
49
  },
50
50
  dependencies: {
@@ -43,10 +43,10 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@batijs/shared-db": "workspace:*",
46
- "@trpc/client": "^10.43.6",
47
- "@trpc/server": "^10.43.6",
46
+ "@trpc/client": "^10.44.1",
47
+ "@trpc/server": "^10.44.1",
48
48
  "@types/node": "^18.18.9",
49
- vite: "^4.5.0"
49
+ vite: "^5.0.2"
50
50
  },
51
51
  dependencies: {
52
52
  "@batijs/core": "workspace:*"
@@ -45,7 +45,7 @@ var require_package = __commonJS({
45
45
  "@types/node": "^18.18.9",
46
46
  "@vite-plugin-vercel/vike": "^2.0.0",
47
47
  "vite-plugin-vercel": "^2.0.0",
48
- vite: "^4.5.0",
48
+ vite: "^5.0.2",
49
49
  vike: "^0.4.147"
50
50
  },
51
51
  dependencies: {
@@ -44,17 +44,17 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.18.9",
46
46
  "@vitejs/plugin-vue": "^4.5.0",
47
- "@vue/compiler-sfc": "^3.3.8",
48
- "@vue/server-renderer": "^3.3.8",
47
+ "@vue/compiler-sfc": "^3.3.9",
48
+ "@vue/server-renderer": "^3.3.9",
49
49
  "cross-fetch": "^4.0.0",
50
50
  "eslint-plugin-vue": "^9.18.1",
51
51
  tailwindcss: "^3.3.5",
52
- typescript: "^5.2.2",
52
+ typescript: "^5.3.2",
53
53
  "unplugin-vue-markdown": "^0.25.2",
54
54
  vike: "^0.4.147",
55
55
  "vike-vue": "^0.5.0",
56
- vite: "^4.5.0",
57
- vue: "^3.3.8"
56
+ vite: "^5.0.2",
57
+ vue: "^3.3.9"
58
58
  },
59
59
  dependencies: {
60
60
  "@batijs/core": "workspace:*"
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  consola
5
5
  } from "./chunk-P3F3WO2D.js";
6
6
 
7
- // ../../node_modules/.pnpm/citty@0.1.4/node_modules/citty/dist/index.mjs
7
+ // ../../node_modules/.pnpm/citty@0.1.5/node_modules/citty/dist/index.mjs
8
8
  function toArray(val) {
9
9
  if (Array.isArray(val)) {
10
10
  return val;
@@ -287,6 +287,7 @@ async function runCommand(cmd, opts) {
287
287
  if (typeof cmd.setup === "function") {
288
288
  await cmd.setup(context);
289
289
  }
290
+ let result;
290
291
  try {
291
292
  const subCommands = await resolveValue(cmd.subCommands);
292
293
  if (subCommands && Object.keys(subCommands).length > 0) {
@@ -312,13 +313,14 @@ async function runCommand(cmd, opts) {
312
313
  }
313
314
  }
314
315
  if (typeof cmd.run === "function") {
315
- await cmd.run(context);
316
+ result = await cmd.run(context);
316
317
  }
317
318
  } finally {
318
319
  if (typeof cmd.cleanup === "function") {
319
320
  await cmd.cleanup(context);
320
321
  }
321
322
  }
323
+ return { result };
322
324
  }
323
325
  async function resolveSubCommand(cmd, rawArgs, parent) {
324
326
  const subCommands = await resolveValue(cmd.subCommands);
@@ -422,9 +424,10 @@ async function renderUsage(cmd, parent) {
422
424
  }
423
425
  async function runMain(cmd, opts = {}) {
424
426
  const rawArgs = opts.rawArgs || process.argv.slice(2);
427
+ const showUsage$1 = opts.showUsage || showUsage;
425
428
  try {
426
429
  if (rawArgs.includes("--help") || rawArgs.includes("-h")) {
427
- await showUsage(...await resolveSubCommand(cmd, rawArgs));
430
+ await showUsage$1(...await resolveSubCommand(cmd, rawArgs));
428
431
  process.exit(0);
429
432
  } else if (rawArgs.length === 1 && rawArgs[0] === "--version") {
430
433
  const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
@@ -441,7 +444,7 @@ async function runMain(cmd, opts = {}) {
441
444
  consola.error(error2, "\n");
442
445
  }
443
446
  if (isCLIError) {
444
- await showUsage(...await resolveSubCommand(cmd, rawArgs));
447
+ await showUsage$1(...await resolveSubCommand(cmd, rawArgs));
445
448
  }
446
449
  consola.error(error2.message);
447
450
  process.exit(1);
@@ -573,7 +576,7 @@ Please report this issue to https://github.com/magne4000/bati`
573
576
  // package.json
574
577
  var package_default = {
575
578
  name: "@batijs/cli",
576
- version: "0.0.118",
579
+ version: "0.0.120",
577
580
  type: "module",
578
581
  scripts: {
579
582
  "check-types": "tsc --noEmit",
@@ -590,16 +593,16 @@ var package_default = {
590
593
  "@batijs/build": "workspace:*",
591
594
  "@batijs/compile": "workspace:*",
592
595
  "@types/node": "^18.18.9",
593
- "@types/which": "^3.0.2",
594
- citty: "^0.1.4",
596
+ "@types/which": "^3.0.3",
597
+ citty: "^0.1.5",
595
598
  colorette: "^2.0.20",
596
- esbuild: "^0.19.6",
599
+ esbuild: "^0.19.8",
597
600
  execa: "^8.0.1",
598
601
  rimraf: "^5.0.5",
599
602
  sift: "^17.0.1",
600
- tsup: "^8.0.0",
601
- typescript: "^5.2.2",
602
- vite: "^4.5.0"
603
+ tsup: "^8.0.1",
604
+ typescript: "^5.3.2",
605
+ vite: "^5.0.2"
603
606
  },
604
607
  dependencies: {
605
608
  "@batijs/core": "workspace:*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.118",
3
+ "version": "0.0.120",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -9,22 +9,22 @@
9
9
  "license": "MIT",
10
10
  "devDependencies": {
11
11
  "@types/node": "^18.18.9",
12
- "@types/which": "^3.0.2",
13
- "citty": "^0.1.4",
12
+ "@types/which": "^3.0.3",
13
+ "citty": "^0.1.5",
14
14
  "colorette": "^2.0.20",
15
- "esbuild": "^0.19.6",
15
+ "esbuild": "^0.19.8",
16
16
  "execa": "^8.0.1",
17
17
  "rimraf": "^5.0.5",
18
18
  "sift": "^17.0.1",
19
- "tsup": "^8.0.0",
20
- "typescript": "^5.2.2",
21
- "vite": "^4.5.0",
22
- "@batijs/build": "0.0.118",
23
- "@batijs/compile": "0.0.118"
19
+ "tsup": "^8.0.1",
20
+ "typescript": "^5.3.2",
21
+ "vite": "^5.0.2",
22
+ "@batijs/build": "0.0.120",
23
+ "@batijs/compile": "0.0.120"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.118",
27
- "@batijs/features": "0.0.118"
26
+ "@batijs/core": "0.0.120",
27
+ "@batijs/features": "0.0.120"
28
28
  },
29
29
  "bin": "./dist/index.js",
30
30
  "exports": {