Skip to content

Commit af601ce

Browse files
committed
fix server build
1 parent 9bb74d0 commit af601ce

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"start": "vite",
77
"build": "vite build",
8-
"build:server": "tsc -m commonjs --target esnext --esModuleInterop true --outDir server/build server/*.ts",
8+
"build:server": "tsc -p server/tsconfig.json",
99
"run:server": "npm run build:server && node server/build/server",
1010
"test": "vitest",
1111
"test:run": "vitest run"

server/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": ["*.ts"],
4+
"compilerOptions": {
5+
"noEmit": false,
6+
"outDir": "build"
7+
}
8+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"noEmit": true,
1212
"strict": true,
1313
"skipLibCheck": true,
14-
"types": ["vitest/globals", "node"],
14+
"types": ["vite/client", "vitest/globals", "node"],
1515
"forceConsistentCasingInFileNames": true,
1616
"resolveJsonModule": true,
1717
"useDefineForClassFields": true,

0 commit comments

Comments
 (0)