@batijs/cli 0.0.155 → 0.0.157

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.0.12",
46
+ vite: "^5.1.1",
47
47
  "vite-plugin-compiled-react": "^1.1.3"
48
48
  },
49
49
  dependencies: {
@@ -42,8 +42,8 @@ var require_package = __commonJS({
42
42
  },
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:^",
45
- "@typescript-eslint/eslint-plugin": "^6.20.0",
46
- "@typescript-eslint/parser": "^6.20.0",
45
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
46
+ "@typescript-eslint/parser": "^6.21.0",
47
47
  eslint: "^8.56.0"
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.25.1",
44
+ "@auth/core": "^0.26.3",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:*",
47
- "@hattip/adapter-node": "^0.0.41",
48
- "@trpc/server": "^10.45.0",
47
+ "@hattip/adapter-node": "^0.0.42",
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
- telefunc: "^0.1.70",
53
- tsx: "^4.7.0",
54
- vike: "^0.4.160",
52
+ telefunc: "^0.1.71",
53
+ tsx: "^4.7.1",
54
+ vike: "^0.4.161",
55
55
  "vike-authjs": "^0.1.4",
56
- vite: "^5.0.12"
56
+ vite: "^5.1.1"
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.25.1",
44
+ "@auth/core": "^0.26.3",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:^",
47
- "@hattip/polyfills": "^0.0.41",
48
- "@trpc/server": "^10.45.0",
47
+ "@hattip/polyfills": "^0.0.42",
48
+ "@trpc/server": "^10.45.1",
49
49
  "@types/node": "^18.19.14",
50
50
  "@types/serve-static": "^1.15.5",
51
51
  h3: "~1.10.1",
52
52
  "serve-static": "^1.15.0",
53
- telefunc: "^0.1.70",
54
- tsx: "^4.7.0",
55
- vike: "^0.4.160",
53
+ telefunc: "^0.1.71",
54
+ tsx: "^4.7.1",
55
+ vike: "^0.4.161",
56
56
  "vike-authjs": "^0.1.4",
57
- vite: "^5.0.12"
57
+ vite: "^5.1.1"
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.25.1",
44
+ "@auth/core": "^0.26.3",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:^",
47
- "@hattip/adapter-node": "^0.0.41",
48
- "@hattip/core": "^0.0.41",
49
- "@hattip/router": "^0.0.41",
50
- "@hattip/vite": "^0.0.41",
51
- "@trpc/server": "^10.45.0",
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",
51
+ "@trpc/server": "^10.45.1",
52
52
  "@types/node": "^18.19.14",
53
53
  hattip: "^0.0.33",
54
- telefunc: "^0.1.70",
55
- vike: "^0.4.160",
54
+ telefunc: "^0.1.71",
55
+ vike: "^0.4.161",
56
56
  "vike-authjs": "^0.1.4",
57
- vite: "^5.0.12"
57
+ vite: "^5.1.1"
58
58
  },
59
59
  dependencies: {
60
60
  "@batijs/core": "workspace:*"
@@ -94,7 +94,7 @@ async function getPackageJson(props) {
94
94
  warnIfReplaced: true
95
95
  },
96
96
  build: {
97
- value: "hattip build ./hattip-entry.ts --client",
97
+ value: "NODE_ENV=production hattip build ./hattip-entry.ts --client",
98
98
  precedence: 20,
99
99
  warnIfReplaced: true
100
100
  }
@@ -46,8 +46,8 @@ 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.53",
50
- "@types/react-dom": "^18.2.18",
49
+ "@types/react": "^18.2.55",
50
+ "@types/react-dom": "^18.2.19",
51
51
  "@vitejs/plugin-react": "^4.2.1",
52
52
  "cross-fetch": "^4.0.0",
53
53
  "eslint-config-react-app": "^7.0.1",
@@ -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.160",
58
+ vike: "^0.4.161",
59
59
  "vike-react": "^0.4.4",
60
- vite: "^5.0.12"
60
+ vite: "^5.1.1"
61
61
  },
62
62
  dependencies: {
63
63
  "@batijs/core": "workspace:*"
@@ -1,12 +1,13 @@
1
1
  import React from "react";
2
+ import { usePageContext } from 'vike-react/usePageContext';
2
3
 
3
- export default function Page({ is404, errorInfo }: { is404: boolean; errorInfo?: string }) {
4
+ export default function Page() {
5
+ const { is404 } = usePageContext();
4
6
  if (is404) {
5
7
  return (
6
8
  <>
7
9
  <h1>404 Page Not Found</h1>
8
10
  <p>This page could not be found.</p>
9
- <p>{errorInfo}</p>
10
11
  </>
11
12
  );
12
13
  } else {
@@ -1,4 +1 @@
1
- export default function Page({ is404, errorInfo }: {
2
- is404: boolean;
3
- errorInfo?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
1
+ export default function Page(): import("react/jsx-runtime").JSX.Element;
@@ -12,8 +12,8 @@
12
12
  "author": "",
13
13
  "devDependencies": {
14
14
  "typescript": "^5.3.3",
15
- "vike": "^0.4.160",
16
- "vite": "^5.0.12"
15
+ "vike": "^0.4.161",
16
+ "vite": "^5.1.1"
17
17
  },
18
18
  "dependencies": {}
19
19
  }
@@ -45,12 +45,12 @@ 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.12",
48
+ "solid-js": "^1.8.14",
49
49
  tailwindcss: "^3.4.1",
50
50
  typescript: "^5.3.3",
51
- vike: "^0.4.160",
52
- "vike-solid": "^0.3.1",
53
- vite: "^5.0.12",
51
+ vike: "^0.4.161",
52
+ "vike-solid": "^0.4.0",
53
+ vite: "^5.1.1",
54
54
  "vite-plugin-solid": "^2.9.1"
55
55
  },
56
56
  dependencies: {
@@ -2,18 +2,17 @@
2
2
  import { addVitePlugin, loadAsMagicast } from "@batijs/core";
3
3
  async function getViteConfig(props) {
4
4
  const mod = await loadAsMagicast(props);
5
- let options = void 0;
6
- if (props.meta.BATI.has("vercel")) {
7
- options = {
8
- vps: {
9
- prerender: true
10
- }
11
- };
12
- }
5
+ const vikeOptions = props.meta.BATI.has("vercel") ? {
6
+ prerender: true
7
+ } : {};
8
+ addVitePlugin(mod, {
9
+ from: "vike/plugin",
10
+ constructor: "vike",
11
+ options: vikeOptions
12
+ });
13
13
  addVitePlugin(mod, {
14
14
  from: "vike-solid/vite",
15
- constructor: "solid",
16
- options
15
+ constructor: "vikeSolid"
17
16
  });
18
17
  return mod.generate().code;
19
18
  }
@@ -1,9 +1,11 @@
1
1
  import { Show } from "solid-js";
2
+ import { usePageContext } from "vike-solid/usePageContext";
2
3
 
3
- export default function Page(props: { is404: boolean; errorInfo?: string }) {
4
+ export default function Page() {
5
+ const { is404 } = usePageContext();
4
6
  return (
5
7
  <Show
6
- when={props.is404}
8
+ when={is404}
7
9
  fallback={
8
10
  <>
9
11
  <h1>500 Internal Server Error</h1>
@@ -13,7 +15,6 @@ export default function Page(props: { is404: boolean; errorInfo?: string }) {
13
15
  >
14
16
  <h1>404 Page Not Found</h1>
15
17
  <p>This page could not be found.</p>
16
- <p>{props.errorInfo}</p>
17
18
  </Show>
18
19
  );
19
20
  }
@@ -1,4 +1 @@
1
- export default function Page(props: {
2
- is404: boolean;
3
- errorInfo?: string;
4
- }): import("solid-js").JSX.Element;
1
+ export default function Page(): import("solid-js").JSX.Element;
@@ -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.1",
48
- postcss: "^8.4.33",
47
+ daisyui: "^4.6.2",
48
+ postcss: "^8.4.35",
49
49
  tailwindcss: "^3.4.1",
50
- vike: "^0.4.160",
51
- vite: "^5.0.12"
50
+ vike: "^0.4.161",
51
+ vite: "^5.1.1"
52
52
  },
53
53
  dependencies: {
54
54
  "@batijs/core": "workspace:*"
@@ -43,9 +43,9 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
- telefunc: "^0.1.70",
47
- vike: "^0.4.160",
48
- vite: "^5.0.12"
46
+ telefunc: "^0.1.71",
47
+ vike: "^0.4.161",
48
+ vite: "^5.1.1"
49
49
  },
50
50
  dependencies: {
51
51
  "@batijs/core": "workspace:*"
@@ -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.45.0",
47
- "@trpc/server": "^10.45.0",
46
+ "@trpc/client": "^10.45.1",
47
+ "@trpc/server": "^10.45.1",
48
48
  "@types/node": "^18.19.14",
49
- vite: "^5.0.12"
49
+ vite: "^5.1.1"
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.160",
48
- vite: "^5.0.12",
47
+ vike: "^0.4.161",
48
+ vite: "^5.1.1",
49
49
  "vite-plugin-vercel": "^4.0.0"
50
50
  },
51
51
  dependencies: {
@@ -43,18 +43,18 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
- "@vitejs/plugin-vue": "^5.0.3",
47
- "@vue/compiler-sfc": "^3.4.15",
48
- "@vue/server-renderer": "^3.4.15",
46
+ "@vitejs/plugin-vue": "^5.0.4",
47
+ "@vue/compiler-sfc": "^3.4.18",
48
+ "@vue/server-renderer": "^3.4.18",
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.160",
54
+ vike: "^0.4.161",
55
55
  "vike-vue": "^0.6.1",
56
- vite: "^5.0.12",
57
- vue: "^3.4.15",
56
+ vite: "^5.1.1",
57
+ vue: "^3.4.18",
58
58
  "vue-gtag": "^2.0.1"
59
59
  },
60
60
  dependencies: {
package/dist/index.js CHANGED
@@ -585,7 +585,7 @@ Please report this issue to https://github.com/magne4000/bati`
585
585
  // package.json
586
586
  var package_default = {
587
587
  name: "@batijs/cli",
588
- version: "0.0.155",
588
+ version: "0.0.157",
589
589
  type: "module",
590
590
  scripts: {
591
591
  "check-types": "tsc --noEmit",
@@ -609,9 +609,9 @@ var package_default = {
609
609
  execa: "^8.0.1",
610
610
  rimraf: "^5.0.5",
611
611
  sift: "^17.0.1",
612
- tsup: "^8.0.1",
612
+ tsup: "^8.0.2",
613
613
  typescript: "^5.3.3",
614
- vite: "^5.0.12"
614
+ vite: "^5.1.1"
615
615
  },
616
616
  dependencies: {
617
617
  "@batijs/core": "workspace:*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
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",
@@ -16,15 +16,15 @@
16
16
  "execa": "^8.0.1",
17
17
  "rimraf": "^5.0.5",
18
18
  "sift": "^17.0.1",
19
- "tsup": "^8.0.1",
19
+ "tsup": "^8.0.2",
20
20
  "typescript": "^5.3.3",
21
- "vite": "^5.0.12",
22
- "@batijs/build": "0.0.155",
23
- "@batijs/compile": "0.0.155"
21
+ "vite": "^5.1.1",
22
+ "@batijs/build": "0.0.157",
23
+ "@batijs/compile": "0.0.157"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.155",
27
- "@batijs/features": "0.0.155"
26
+ "@batijs/core": "0.0.157",
27
+ "@batijs/features": "0.0.157"
28
28
  },
29
29
  "bin": "./dist/index.js",
30
30
  "exports": {