@batijs/cli 0.0.158 → 0.0.160

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.
@@ -43,7 +43,7 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
- vite: "^5.1.1",
46
+ vite: "^5.1.3",
47
47
  "vite-plugin-compiled-react": "^1.1.3"
48
48
  },
49
49
  dependencies: {
@@ -41,19 +41,19 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.26.3",
44
+ "@auth/core": "^0.27.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:*",
47
- "@hattip/adapter-node": "^0.0.42",
47
+ "@hattip/adapter-node": "^0.0.43",
48
48
  "@trpc/server": "^10.45.1",
49
49
  "@types/express": "^4.17.21",
50
50
  "@types/node": "^18.19.14",
51
51
  express: "^4.18.2",
52
52
  telefunc: "^0.1.71",
53
53
  tsx: "^4.7.1",
54
- vike: "^0.4.161",
54
+ vike: "^0.4.162",
55
55
  "vike-authjs": "^0.1.4",
56
- vite: "^5.1.1"
56
+ vite: "^5.1.3"
57
57
  },
58
58
  dependencies: {
59
59
  "@batijs/core": "workspace:*"
@@ -41,10 +41,10 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.26.3",
44
+ "@auth/core": "^0.27.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:^",
47
- "@hattip/polyfills": "^0.0.42",
47
+ "@hattip/polyfills": "^0.0.43",
48
48
  "@trpc/server": "^10.45.1",
49
49
  "@types/node": "^18.19.14",
50
50
  "@types/serve-static": "^1.15.5",
@@ -52,9 +52,9 @@ var require_package = __commonJS({
52
52
  "serve-static": "^1.15.0",
53
53
  telefunc: "^0.1.71",
54
54
  tsx: "^4.7.1",
55
- vike: "^0.4.161",
55
+ vike: "^0.4.162",
56
56
  "vike-authjs": "^0.1.4",
57
- vite: "^5.1.1"
57
+ vite: "^5.1.3"
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.26.3",
44
+ "@auth/core": "^0.27.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:^",
47
- "@hattip/adapter-node": "^0.0.42",
48
- "@hattip/core": "^0.0.42",
49
- "@hattip/router": "^0.0.42",
50
- "@hattip/vite": "^0.0.42",
47
+ "@hattip/adapter-node": "^0.0.43",
48
+ "@hattip/core": "^0.0.43",
49
+ "@hattip/router": "^0.0.43",
50
+ "@hattip/vite": "^0.0.43",
51
51
  "@trpc/server": "^10.45.1",
52
52
  "@types/node": "^18.19.14",
53
53
  hattip: "^0.0.33",
54
54
  telefunc: "^0.1.71",
55
- vike: "^0.4.161",
55
+ vike: "^0.4.162",
56
56
  "vike-authjs": "^0.1.4",
57
- vite: "^5.1.1"
57
+ vite: "^5.1.3"
58
58
  },
59
59
  dependencies: {
60
60
  "@batijs/core": "workspace:*"
@@ -46,7 +46,7 @@ var require_package = __commonJS({
46
46
  "@babel/plugin-transform-react-jsx": "^7.23.4",
47
47
  "@batijs/compile": "workspace:*",
48
48
  "@types/node": "^18.19.14",
49
- "@types/react": "^18.2.55",
49
+ "@types/react": "^18.2.56",
50
50
  "@types/react-dom": "^18.2.19",
51
51
  "@vitejs/plugin-react": "^4.2.1",
52
52
  "cross-fetch": "^4.0.0",
@@ -55,9 +55,9 @@ var require_package = __commonJS({
55
55
  "react-dom": "^18.2.0",
56
56
  tailwindcss: "^3.4.1",
57
57
  typescript: "^5.3.3",
58
- vike: "^0.4.161",
59
- "vike-react": "^0.4.4",
60
- vite: "^5.1.1"
58
+ vike: "^0.4.162",
59
+ "vike-react": "^0.4.6",
60
+ vite: "^5.1.3"
61
61
  },
62
62
  dependencies: {
63
63
  "@batijs/core": "workspace:*"
@@ -1,10 +1,75 @@
1
- import vikeReact from "vike-react/config";
2
1
  import Head from "../layouts/HeadDefault";
3
2
  import Layout from "../layouts/LayoutDefault";
4
3
  declare const _default: {
5
4
  Layout: typeof Layout;
6
5
  Head: typeof Head;
7
6
  title: string;
8
- extends: typeof vikeReact;
7
+ extends: {
8
+ name: string;
9
+ onRenderHtml: "import:vike-react/renderer/onRenderHtml:onRenderHtml";
10
+ onRenderClient: "import:vike-react/renderer/onRenderClient:onRenderClient";
11
+ passToClient: string[];
12
+ clientRouting: true;
13
+ hydrationCanBeAborted: true;
14
+ meta: {
15
+ Head: {
16
+ env: {
17
+ server: true;
18
+ };
19
+ };
20
+ Layout: {
21
+ env: {
22
+ server: true;
23
+ client: true;
24
+ };
25
+ };
26
+ title: {
27
+ env: {
28
+ server: true;
29
+ client: true;
30
+ };
31
+ };
32
+ favicon: {
33
+ env: {
34
+ server: true;
35
+ client: true;
36
+ };
37
+ };
38
+ lang: {
39
+ env: {
40
+ server: true;
41
+ client: true;
42
+ };
43
+ };
44
+ ssr: {
45
+ env: {
46
+ config: true;
47
+ };
48
+ effect: typeof import("vike-react/dist/renderer/ssrEffect").ssrEffect;
49
+ };
50
+ stream: {
51
+ env: {
52
+ server: true;
53
+ };
54
+ };
55
+ VikeReactQueryWrapper: {
56
+ env: {
57
+ client: true;
58
+ server: true;
59
+ };
60
+ };
61
+ Wrapper: {
62
+ env: {
63
+ client: true;
64
+ server: true;
65
+ };
66
+ };
67
+ name: {
68
+ env: {
69
+ config: true;
70
+ };
71
+ };
72
+ };
73
+ };
9
74
  };
10
75
  export default _default;
@@ -12,8 +12,8 @@
12
12
  "author": "",
13
13
  "devDependencies": {
14
14
  "typescript": "^5.3.3",
15
- "vike": "^0.4.161",
16
- "vite": "^5.1.1"
15
+ "vike": "^0.4.162",
16
+ "vite": "^5.1.3"
17
17
  },
18
18
  "dependencies": {}
19
19
  }
@@ -45,13 +45,13 @@ var require_package = __commonJS({
45
45
  "@types/node": "^18.19.14",
46
46
  "cross-fetch": "^4.0.0",
47
47
  "eslint-plugin-solid": "^0.13.1",
48
- "solid-js": "^1.8.14",
48
+ "solid-js": "^1.8.15",
49
49
  tailwindcss: "^3.4.1",
50
50
  typescript: "^5.3.3",
51
- vike: "^0.4.161",
52
- "vike-solid": "^0.4.0",
53
- vite: "^5.1.1",
54
- "vite-plugin-solid": "^2.9.1"
51
+ vike: "^0.4.162",
52
+ "vike-solid": "^0.4.1",
53
+ vite: "^5.1.3",
54
+ "vite-plugin-solid": "^2.10.1"
55
55
  },
56
56
  dependencies: {
57
57
  "@batijs/core": "workspace:*"
@@ -44,11 +44,11 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
46
  autoprefixer: "^10.4.17",
47
- daisyui: "^4.6.2",
47
+ daisyui: "^4.7.2",
48
48
  postcss: "^8.4.35",
49
49
  tailwindcss: "^3.4.1",
50
- vike: "^0.4.161",
51
- vite: "^5.1.1"
50
+ vike: "^0.4.162",
51
+ vite: "^5.1.3"
52
52
  },
53
53
  dependencies: {
54
54
  "@batijs/core": "workspace:*"
@@ -44,8 +44,8 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
46
  telefunc: "^0.1.71",
47
- vike: "^0.4.161",
48
- vite: "^5.1.1"
47
+ vike: "^0.4.162",
48
+ vite: "^5.1.3"
49
49
  },
50
50
  dependencies: {
51
51
  "@batijs/core": "workspace:*"
@@ -46,7 +46,7 @@ var require_package = __commonJS({
46
46
  "@trpc/client": "^10.45.1",
47
47
  "@trpc/server": "^10.45.1",
48
48
  "@types/node": "^18.19.14",
49
- vite: "^5.1.1"
49
+ vite: "^5.1.3"
50
50
  },
51
51
  dependencies: {
52
52
  "@batijs/core": "workspace:*"
@@ -44,8 +44,8 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
46
  "@vite-plugin-vercel/vike": "^4.0.0",
47
- vike: "^0.4.161",
48
- vite: "^5.1.1",
47
+ vike: "^0.4.162",
48
+ vite: "^5.1.3",
49
49
  "vite-plugin-vercel": "^4.0.0"
50
50
  },
51
51
  dependencies: {
@@ -44,17 +44,17 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
46
  "@vitejs/plugin-vue": "^5.0.4",
47
- "@vue/compiler-sfc": "^3.4.18",
48
- "@vue/server-renderer": "^3.4.18",
47
+ "@vue/compiler-sfc": "^3.4.19",
48
+ "@vue/server-renderer": "^3.4.19",
49
49
  "cross-fetch": "^4.0.0",
50
50
  "eslint-plugin-vue": "^9.21.1",
51
51
  tailwindcss: "^3.4.1",
52
52
  typescript: "^5.3.3",
53
53
  "unplugin-vue-markdown": "^0.26.0",
54
- vike: "^0.4.161",
55
- "vike-vue": "^0.6.1",
56
- vite: "^5.1.1",
57
- vue: "^3.4.18",
54
+ vike: "^0.4.162",
55
+ "vike-vue": "^0.6.2",
56
+ vite: "^5.1.3",
57
+ vue: "^3.4.19",
58
58
  "vue-gtag": "^2.0.1"
59
59
  },
60
60
  dependencies: {
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.5/node_modules/citty/dist/index.mjs
7
+ // ../../node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs
8
8
  function toArray(val) {
9
9
  if (Array.isArray(val)) {
10
10
  return val;
@@ -40,18 +40,18 @@ function isUppercase(char = "") {
40
40
  if (NUMBER_CHAR_RE.test(char)) {
41
41
  return void 0;
42
42
  }
43
- return char.toUpperCase() === char;
43
+ return char !== char.toLowerCase();
44
44
  }
45
- function splitByCase(string_, separators) {
45
+ function splitByCase(str, separators) {
46
46
  const splitters = separators ?? STR_SPLITTERS;
47
47
  const parts = [];
48
- if (!string_ || typeof string_ !== "string") {
48
+ if (!str || typeof str !== "string") {
49
49
  return parts;
50
50
  }
51
51
  let buff = "";
52
52
  let previousUpper;
53
53
  let previousSplitter;
54
- for (const char of string_) {
54
+ for (const char of str) {
55
55
  const isSplitter = splitters.includes(char);
56
56
  if (isSplitter === true) {
57
57
  parts.push(buff);
@@ -68,7 +68,7 @@ function splitByCase(string_, separators) {
68
68
  continue;
69
69
  }
70
70
  if (previousUpper === true && isUpper === false && buff.length > 1) {
71
- const lastChar = buff[buff.length - 1];
71
+ const lastChar = buff.at(-1);
72
72
  parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
73
73
  buff = lastChar + char;
74
74
  previousUpper = isUpper;
@@ -82,20 +82,20 @@ function splitByCase(string_, separators) {
82
82
  parts.push(buff);
83
83
  return parts;
84
84
  }
85
- function upperFirst(string_) {
86
- return !string_ ? "" : string_[0].toUpperCase() + string_.slice(1);
85
+ function upperFirst(str) {
86
+ return str ? str[0].toUpperCase() + str.slice(1) : "";
87
87
  }
88
- function lowerFirst(string_) {
89
- return !string_ ? "" : string_[0].toLowerCase() + string_.slice(1);
88
+ function lowerFirst(str) {
89
+ return str ? str[0].toLowerCase() + str.slice(1) : "";
90
90
  }
91
- function pascalCase(string_) {
92
- return !string_ ? "" : (Array.isArray(string_) ? string_ : splitByCase(string_)).map((p) => upperFirst(p)).join("");
91
+ function pascalCase(str, opts) {
92
+ return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
93
93
  }
94
- function camelCase(string_) {
95
- return lowerFirst(pascalCase(string_));
94
+ function camelCase(str, opts) {
95
+ return lowerFirst(pascalCase(str || "", opts));
96
96
  }
97
- function kebabCase(string_, joiner) {
98
- return !string_ ? "" : (Array.isArray(string_) ? string_ : splitByCase(string_)).map((p) => p.toLowerCase()).join(joiner ?? "-");
97
+ function kebabCase(str, joiner) {
98
+ return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
99
99
  }
100
100
  function toArr(any) {
101
101
  return any == void 0 ? [] : Array.isArray(any) ? any : [any];
@@ -358,8 +358,12 @@ async function renderUsage(cmd, parent) {
358
358
  if (arg.type === "positional") {
359
359
  const name = arg.name.toUpperCase();
360
360
  const isRequired = arg.required !== false && arg.default === void 0;
361
- const usageHint = arg.default ? `="${arg.default}"` : "";
362
- posLines.push(["`" + name + usageHint + "`", arg.description || ""]);
361
+ const defaultHint = arg.default ? `="${arg.default}"` : "";
362
+ posLines.push([
363
+ "`" + name + defaultHint + "`",
364
+ arg.description || "",
365
+ arg.valueHint ? `<${arg.valueHint}>` : ""
366
+ ]);
363
367
  usageLine.push(isRequired ? `<${name}>` : `[${name}]`);
364
368
  } else {
365
369
  const isRequired = arg.required === true && arg.default === void 0;
@@ -585,7 +589,7 @@ Please report this issue to https://github.com/magne4000/bati`
585
589
  // package.json
586
590
  var package_default = {
587
591
  name: "@batijs/cli",
588
- version: "0.0.158",
592
+ version: "0.0.160",
589
593
  type: "module",
590
594
  scripts: {
591
595
  "check-types": "tsc --noEmit",
@@ -603,15 +607,15 @@ var package_default = {
603
607
  "@batijs/compile": "workspace:*",
604
608
  "@types/node": "^18.19.14",
605
609
  "@types/which": "^3.0.3",
606
- citty: "^0.1.5",
610
+ citty: "^0.1.6",
607
611
  colorette: "^2.0.20",
608
- esbuild: "^0.20.0",
612
+ esbuild: "^0.20.1",
609
613
  execa: "^8.0.1",
610
614
  rimraf: "^5.0.5",
611
615
  sift: "^17.0.1",
612
616
  tsup: "^8.0.2",
613
617
  typescript: "^5.3.3",
614
- vite: "^5.1.1"
618
+ vite: "^5.1.3"
615
619
  },
616
620
  dependencies: {
617
621
  "@batijs/core": "workspace:*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.158",
3
+ "version": "0.0.160",
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",
@@ -10,21 +10,21 @@
10
10
  "devDependencies": {
11
11
  "@types/node": "^18.19.14",
12
12
  "@types/which": "^3.0.3",
13
- "citty": "^0.1.5",
13
+ "citty": "^0.1.6",
14
14
  "colorette": "^2.0.20",
15
- "esbuild": "^0.20.0",
15
+ "esbuild": "^0.20.1",
16
16
  "execa": "^8.0.1",
17
17
  "rimraf": "^5.0.5",
18
18
  "sift": "^17.0.1",
19
19
  "tsup": "^8.0.2",
20
20
  "typescript": "^5.3.3",
21
- "vite": "^5.1.1",
22
- "@batijs/build": "0.0.158",
23
- "@batijs/compile": "0.0.158"
21
+ "vite": "^5.1.3",
22
+ "@batijs/build": "0.0.160",
23
+ "@batijs/compile": "0.0.160"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.158",
27
- "@batijs/features": "0.0.158"
26
+ "@batijs/core": "0.0.160",
27
+ "@batijs/features": "0.0.160"
28
28
  },
29
29
  "bin": "./dist/index.js",
30
30
  "exports": {