Skip to content

Commit 3497e18

Browse files
ersinkocclaude
andcommitted
🔧 fix(website): fix vite.config.ts TypeScript error in CI
Replace path/\_\_dirname with fileURLToPath (ESM-compatible). Add @types/node for tsconfig.node.json. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 422b718 commit 3497e18

4 files changed

Lines changed: 34 additions & 14 deletions

File tree

website/package-lock.json

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

website/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,24 @@
1010
"lint": "eslint ."
1111
},
1212
"dependencies": {
13+
"@oxog/codeshine": "^1.0.0",
14+
"clsx": "^2.1.1",
15+
"framer-motion": "^12.18.1",
16+
"lucide-react": "^0.513.0",
1317
"react": "^19.1.0",
1418
"react-dom": "^19.1.0",
1519
"react-router": "^7.6.2",
16-
"framer-motion": "^12.18.1",
17-
"lucide-react": "^0.513.0",
18-
"@oxog/codeshine": "^1.0.0",
19-
"zustand": "^5.0.5",
20-
"clsx": "^2.1.1",
21-
"tailwind-merge": "^3.3.0"
20+
"tailwind-merge": "^3.3.0",
21+
"zustand": "^5.0.5"
2222
},
2323
"devDependencies": {
24+
"@tailwindcss/vite": "^4.1.8",
25+
"@types/node": "^25.5.0",
2426
"@types/react": "^19.1.6",
2527
"@types/react-dom": "^19.1.5",
2628
"@vitejs/plugin-react": "^4.5.2",
27-
"typescript": "^5.8.3",
28-
"vite": "^6.3.5",
2929
"tailwindcss": "^4.1.8",
30-
"@tailwindcss/vite": "^4.1.8"
30+
"typescript": "^5.8.3",
31+
"vite": "^6.3.5"
3132
}
3233
}

website/tsconfig.node.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
44
"target": "ES2022",
55
"lib": ["ES2022"],
6+
"types": ["node"],
67
"module": "ESNext",
78
"skipLibCheck": true,
89
"moduleResolution": "bundler",

website/vite.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { defineConfig } from 'vite';
2-
import react from '@vitejs/plugin-react';
3-
import tailwindcss from '@tailwindcss/vite';
4-
import path from 'path';
1+
import { defineConfig } from "vite";
2+
import react from "@vitejs/plugin-react";
3+
import tailwindcss from "@tailwindcss/vite";
4+
import { fileURLToPath } from "url";
55

66
export default defineConfig({
77
plugins: [react(), tailwindcss()],
88
resolve: {
99
alias: {
10-
'@': path.resolve(__dirname, './src'),
10+
"@": fileURLToPath(new URL("./src", import.meta.url)),
1111
},
1212
},
1313
build: {

0 commit comments

Comments
 (0)