Skip to content

Commit 0f2c25d

Browse files
committed
Update to vite 8
1 parent 8f94cd2 commit 0f2c25d

8 files changed

Lines changed: 362 additions & 575 deletions

File tree

.oxfmtrc.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"sortPackageJson": true,
1111
"sortTsconfig": true,
1212
"sortTailwindConfig": true,
13-
"ignorePatterns": []
13+
"ignorePatterns": ["**/*.d.ts", "**/*.gen.ts"]
1414
}

bun.lock

Lines changed: 297 additions & 523 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"build": "vite build",
7-
"check": "bun run format:check && bun run lint && bun run typecheck && bun test",
7+
"check": "bun run format:check && bun run lint && bun run typecheck && bun run test",
88
"clean": "git clean -xdf node_modules/.cache .tanstack .output .nitro dist .wrangler",
99
"db:generate": "drizzle-kit generate",
1010
"db:migrate": "wrangler d1 migrations apply DB --local",
@@ -22,47 +22,48 @@
2222
"outdated": "npx npm-check-updates --interactive --format group",
2323
"setup": "bin/setup",
2424
"start": "vite start",
25+
"test": "vitest",
2526
"typecheck": "tsc --noEmit --pretty",
2627
"typegen": "wrangler types"
2728
},
2829
"dependencies": {
2930
"@fontsource-variable/geist": "^5.2.8",
3031
"@fontsource-variable/geist-mono": "^5.2.7",
31-
"@tanstack/react-query": "^5.90.2",
32-
"@tanstack/react-query-devtools": "^5.90.2",
33-
"@tanstack/react-router": "^1.132.7",
34-
"@tanstack/react-router-devtools": "^1.132.11",
32+
"@tanstack/react-query": "^5.95.2",
33+
"@tanstack/react-query-devtools": "^5.95.2",
34+
"@tanstack/react-router": "^1.168.3",
35+
"@tanstack/react-router-devtools": "^1.166.11",
3536
"@tanstack/react-router-with-query": "^1.130.17",
36-
"@tanstack/react-start": "^1.132.13",
37-
"better-auth": "^1.3.18",
37+
"@tanstack/react-start": "^1.167.5",
38+
"better-auth": "^1.5.6",
3839
"class-variance-authority": "^0.7.1",
3940
"clsx": "^2.1.1",
4041
"drizzle-orm": "^0.44.5",
41-
"lucide-react": "^0.544.0",
42+
"lucide-react": "^1.0.1",
4243
"radix-ui": "^1.4.3",
43-
"react": "^19.1.1",
44-
"react-dom": "^19.1.1",
45-
"tailwind-merge": "^3.3.1",
46-
"valibot": "^1.1.0"
44+
"react": "^19.2.4",
45+
"react-dom": "^19.2.4",
46+
"tailwind-merge": "^3.5.0",
47+
"valibot": "^1.3.1"
4748
},
4849
"devDependencies": {
49-
"@cloudflare/vite-plugin": "^1.13.7",
50-
"@tailwindcss/vite": "^4.1.13",
50+
"@cloudflare/vite-plugin": "^1.30.0",
51+
"@tailwindcss/vite": "^4.2.2",
5152
"@types/bun": "latest",
52-
"@types/node": "^24.5.2",
53-
"@types/react": "^19.1.14",
54-
"@types/react-dom": "^19.1.9",
55-
"@vitejs/plugin-react": "^5.0.4",
53+
"@types/node": "latest",
54+
"@types/react": "^19.2.14",
55+
"@types/react-dom": "^19.2.3",
56+
"@vitejs/plugin-react": "^6.0.1",
5657
"dotkit": "^1.5.0",
5758
"drizzle-kit": "^0.31.5",
58-
"oxfmt": "^0.41.0",
59-
"oxlint": "^1.56.0",
60-
"oxlint-tsgolint": "^0.17.2",
61-
"tailwindcss": "^4.1.13",
59+
"oxfmt": "latest",
60+
"oxlint": "latest",
61+
"oxlint-tsgolint": "latest",
62+
"tailwindcss": "^4.2.2",
6263
"tw-animate-css": "^1.4.0",
63-
"typescript": "^5",
64-
"vite": "npm:rolldown-vite@latest",
65-
"vite-tsconfig-paths": "^5.1.4",
66-
"wrangler": "^4.40.2"
64+
"typescript": "^6",
65+
"vite": "^8.0.2",
66+
"vitest": "^4.1.1",
67+
"wrangler": "^4.76.0"
6768
}
6869
}

src/globals.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// ./src/globals.d.ts
2+
declare module "*.css";
3+
declare module "@fontsource/*";
4+
declare module "@fontsource-variable/*";

src/lib/string-fns/get-initials.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, test } from "bun:test"
1+
import { describe, expect, test } from "vitest"
22

33
import { getInitials } from "./get-initials"
44

src/routeTree.gen.ts

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,52 @@
99
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010

1111
import { Route as rootRouteImport } from "./routes/__root"
12-
import { Route as AuthRouteImport } from "./routes/_auth"
13-
import { Route as AuthLoginRouteImport } from "./routes/_auth/login"
1412
import { Route as MainRouteImport } from "./routes/_main"
13+
import { Route as AuthRouteImport } from "./routes/_auth"
1514
import { Route as MainIndexRouteImport } from "./routes/_main/index"
16-
import { Route as ApiAuthSplatRouteImport } from "./routes/api/auth/$"
1715
import { Route as ApiPingRouteImport } from "./routes/api/ping"
16+
import { Route as AuthLoginRouteImport } from "./routes/_auth/login"
17+
import { Route as ApiAuthSplatRouteImport } from "./routes/api/auth/$"
1818

1919
const MainRoute = MainRouteImport.update({
2020
id: "/_main",
21-
getParentRoute: () => rootRouteImport
21+
getParentRoute: () => rootRouteImport,
2222
} as any)
2323
const AuthRoute = AuthRouteImport.update({
2424
id: "/_auth",
25-
getParentRoute: () => rootRouteImport
25+
getParentRoute: () => rootRouteImport,
2626
} as any)
2727
const MainIndexRoute = MainIndexRouteImport.update({
2828
id: "/",
2929
path: "/",
30-
getParentRoute: () => MainRoute
30+
getParentRoute: () => MainRoute,
3131
} as any)
3232
const ApiPingRoute = ApiPingRouteImport.update({
3333
id: "/api/ping",
3434
path: "/api/ping",
35-
getParentRoute: () => rootRouteImport
35+
getParentRoute: () => rootRouteImport,
3636
} as any)
3737
const AuthLoginRoute = AuthLoginRouteImport.update({
3838
id: "/login",
3939
path: "/login",
40-
getParentRoute: () => AuthRoute
40+
getParentRoute: () => AuthRoute,
4141
} as any)
4242
const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
4343
id: "/api/auth/$",
4444
path: "/api/auth/$",
45-
getParentRoute: () => rootRouteImport
45+
getParentRoute: () => rootRouteImport,
4646
} as any)
4747

4848
export interface FileRoutesByFullPath {
49+
"/": typeof MainIndexRoute
4950
"/login": typeof AuthLoginRoute
5051
"/api/ping": typeof ApiPingRoute
51-
"/": typeof MainIndexRoute
5252
"/api/auth/$": typeof ApiAuthSplatRoute
5353
}
5454
export interface FileRoutesByTo {
55+
"/": typeof MainIndexRoute
5556
"/login": typeof AuthLoginRoute
5657
"/api/ping": typeof ApiPingRoute
57-
"/": typeof MainIndexRoute
5858
"/api/auth/$": typeof ApiAuthSplatRoute
5959
}
6060
export interface FileRoutesById {
@@ -68,9 +68,9 @@ export interface FileRoutesById {
6868
}
6969
export interface FileRouteTypes {
7070
fileRoutesByFullPath: FileRoutesByFullPath
71-
fullPaths: "/login" | "/api/ping" | "/" | "/api/auth/$"
71+
fullPaths: "/" | "/login" | "/api/ping" | "/api/auth/$"
7272
fileRoutesByTo: FileRoutesByTo
73-
to: "/login" | "/api/ping" | "/" | "/api/auth/$"
73+
to: "/" | "/login" | "/api/ping" | "/api/auth/$"
7474
id:
7575
| "__root__"
7676
| "/_auth"
@@ -93,14 +93,14 @@ declare module "@tanstack/react-router" {
9393
"/_main": {
9494
id: "/_main"
9595
path: ""
96-
fullPath: ""
96+
fullPath: "/"
9797
preLoaderRoute: typeof MainRouteImport
9898
parentRoute: typeof rootRouteImport
9999
}
100100
"/_auth": {
101101
id: "/_auth"
102102
path: ""
103-
fullPath: ""
103+
fullPath: "/"
104104
preLoaderRoute: typeof AuthRouteImport
105105
parentRoute: typeof rootRouteImport
106106
}
@@ -140,7 +140,7 @@ interface AuthRouteChildren {
140140
}
141141

142142
const AuthRouteChildren: AuthRouteChildren = {
143-
AuthLoginRoute: AuthLoginRoute
143+
AuthLoginRoute: AuthLoginRoute,
144144
}
145145

146146
const AuthRouteWithChildren = AuthRoute._addFileChildren(AuthRouteChildren)
@@ -150,7 +150,7 @@ interface MainRouteChildren {
150150
}
151151

152152
const MainRouteChildren: MainRouteChildren = {
153-
MainIndexRoute: MainIndexRoute
153+
MainIndexRoute: MainIndexRoute,
154154
}
155155

156156
const MainRouteWithChildren = MainRoute._addFileChildren(MainRouteChildren)
@@ -159,15 +159,14 @@ const rootRouteChildren: RootRouteChildren = {
159159
AuthRoute: AuthRouteWithChildren,
160160
MainRoute: MainRouteWithChildren,
161161
ApiPingRoute: ApiPingRoute,
162-
ApiAuthSplatRoute: ApiAuthSplatRoute
162+
ApiAuthSplatRoute: ApiAuthSplatRoute,
163163
}
164164
export const routeTree = rootRouteImport
165165
._addFileChildren(rootRouteChildren)
166166
._addFileTypes<FileRouteTypes>()
167167

168-
import type { createStart } from "@tanstack/react-start"
169-
170168
import type { getRouter } from "./router.tsx"
169+
import type { createStart } from "@tanstack/react-start"
171170
declare module "@tanstack/react-start" {
172171
interface Register {
173172
ssr: true

vite.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ import tailwindcss from "@tailwindcss/vite"
33
import { tanstackStart } from "@tanstack/react-start/plugin/vite"
44
import react from "@vitejs/plugin-react"
55
import { defineConfig } from "vite"
6-
import tsConfigPaths from "vite-tsconfig-paths"
76

87
export default defineConfig({
8+
resolve: {
9+
tsconfigPaths: true
10+
},
911
server: {
1012
port: 3000
1113
},
1214
plugins: [
13-
tsConfigPaths({
14-
projects: ["./tsconfig.json"]
15-
}),
1615
cloudflare({ viteEnvironment: { name: "ssr" } }),
1716
tanstackStart({
1817
router: {

vitest.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from "vitest/config"
2+
3+
export default defineConfig({
4+
resolve: {
5+
tsconfigPaths: true
6+
},
7+
test: {
8+
watch: false
9+
}
10+
})

0 commit comments

Comments
 (0)