create-better-t-stack 3.8.2 → 3.8.3
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/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-CVJS4SKc.mjs → src-BCBL3cO2.mjs} +2 -2
- package/package.json +2 -2
- package/templates/api/orpc/web/react/base/src/utils/orpc.ts.hbs +2 -4
- package/templates/api/trpc/web/react/base/src/utils/trpc.ts.hbs +4 -8
- package/templates/frontend/react/tanstack-start/src/router.tsx.hbs +2 -4
package/dist/cli.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-
|
|
2
|
+
import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-BCBL3cO2.mjs";
|
|
3
3
|
|
|
4
4
|
export { builder, createBtsCli, docs, init, router, sponsors };
|
|
@@ -64,8 +64,8 @@ function getDefaultConfig() {
|
|
|
64
64
|
const DEFAULT_CONFIG = getDefaultConfig();
|
|
65
65
|
const dependencyVersionMap = {
|
|
66
66
|
typescript: "^5",
|
|
67
|
-
"better-auth": "1.4.
|
|
68
|
-
"@better-auth/expo": "1.4.
|
|
67
|
+
"better-auth": "^1.4.7",
|
|
68
|
+
"@better-auth/expo": "^1.4.7",
|
|
69
69
|
"@clerk/nextjs": "^6.31.5",
|
|
70
70
|
"@clerk/clerk-react": "^5.45.0",
|
|
71
71
|
"@clerk/tanstack-react-start": "^0.26.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.3",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@better-t-stack/types": "^3.8.
|
|
68
|
+
"@better-t-stack/types": "^3.8.3",
|
|
69
69
|
"@biomejs/js-api": "^4.0.0",
|
|
70
70
|
"@biomejs/wasm-nodejs": "^2.3.8",
|
|
71
71
|
"@clack/prompts": "^1.0.0-alpha.8",
|
|
@@ -15,13 +15,11 @@ import type { AppRouterClient } from "@{{projectName}}/api/routers/index";
|
|
|
15
15
|
|
|
16
16
|
export const queryClient = new QueryClient({
|
|
17
17
|
queryCache: new QueryCache({
|
|
18
|
-
onError: (error) => {
|
|
18
|
+
onError: (error, query) => {
|
|
19
19
|
toast.error(`Error: ${error.message}`, {
|
|
20
20
|
action: {
|
|
21
21
|
label: "retry",
|
|
22
|
-
onClick:
|
|
23
|
-
queryClient.invalidateQueries();
|
|
24
|
-
},
|
|
22
|
+
onClick: query.invalidate,
|
|
25
23
|
},
|
|
26
24
|
});
|
|
27
25
|
},
|
|
@@ -7,13 +7,11 @@ import { toast } from 'sonner';
|
|
|
7
7
|
|
|
8
8
|
export const queryClient = new QueryClient({
|
|
9
9
|
queryCache: new QueryCache({
|
|
10
|
-
onError: (error) => {
|
|
10
|
+
onError: (error, query) => {
|
|
11
11
|
toast.error(error.message, {
|
|
12
12
|
action: {
|
|
13
13
|
label: "retry",
|
|
14
|
-
onClick:
|
|
15
|
-
queryClient.invalidateQueries();
|
|
16
|
-
},
|
|
14
|
+
onClick: query.invalidate,
|
|
17
15
|
},
|
|
18
16
|
});
|
|
19
17
|
},
|
|
@@ -63,13 +61,11 @@ import { toast } from "sonner";
|
|
|
63
61
|
|
|
64
62
|
export const queryClient = new QueryClient({
|
|
65
63
|
queryCache: new QueryCache({
|
|
66
|
-
onError: (error) => {
|
|
64
|
+
onError: (error, query) => {
|
|
67
65
|
toast.error(error.message, {
|
|
68
66
|
action: {
|
|
69
67
|
label: "retry",
|
|
70
|
-
onClick:
|
|
71
|
-
queryClient.invalidateQueries();
|
|
72
|
-
},
|
|
68
|
+
onClick: query.invalidate,
|
|
73
69
|
},
|
|
74
70
|
});
|
|
75
71
|
},
|
|
@@ -68,13 +68,11 @@ export function getRouter() {
|
|
|
68
68
|
{{#if (eq api "trpc")}}
|
|
69
69
|
export const queryClient = new QueryClient({
|
|
70
70
|
queryCache: new QueryCache({
|
|
71
|
-
onError: (error) => {
|
|
71
|
+
onError: (error, query) => {
|
|
72
72
|
toast.error(error.message, {
|
|
73
73
|
action: {
|
|
74
74
|
label: "retry",
|
|
75
|
-
onClick:
|
|
76
|
-
queryClient.invalidateQueries();
|
|
77
|
-
},
|
|
75
|
+
onClick: query.invalidate,
|
|
78
76
|
},
|
|
79
77
|
});
|
|
80
78
|
},
|