Skip to content

Commit 8211fda

Browse files
committed
1 parent 866c80c commit 8211fda

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

game-prototype/astro.config.mjs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
import { defineConfig } from 'astro/config';
22
import solid from '@astrojs/solid-js';
3+
import tsconfigPaths from 'vite-tsconfig-paths'
34

45
export default defineConfig({
56
integrations: [
67
solid(),
78
],
89
vite: {
9-
plugins: [],
10+
plugins: [
11+
tsconfigPaths(),
12+
],
1013
build: {
1114
rollupOptions: {
1215
external: [
1316
/^types\//,
1417
]
1518
}
19+
},
20+
vite: {
21+
types: ["vite/client"]
1622
}
1723
},
1824
});

game-prototype/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@astrojs/solid-js": "^4.4.1",
23+
"@astrojs/ts-plugin": "^1.10.1",
2324
"@kobalte/core": "^0.13.4",
2425
"@types/uuid": "^10.0.0",
2526
"astro": "^4.14.6",
@@ -30,6 +31,8 @@
3031
"solid-js": "^1.8.22",
3132
"tailwind-merge": "^2.4.0",
3233
"tailwindcss-animate": "^1.0.7",
33-
"uuid": "^10.0.0"
34+
"uuid": "^10.0.0",
35+
"vite": "^5.4.2",
36+
"vite-tsconfig-paths": "^5.0.1"
3437
}
3538
}

game-prototype/tsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "astro/tsconfigs/strict",
23
"compilerOptions": {
34
"allowJs": true,
45
"allowSyntheticDefaultImports": true,
@@ -19,10 +20,16 @@
1920
"strict": true,
2021
"target": "ESNext",
2122
"types": [
23+
"astro/client",
2224
"vite/client"
2325
],
2426
"baseUrl": "./",
2527
"outDir": "dist",
28+
"plugins": [
29+
{
30+
"name": "@astrojs/ts-plugin"
31+
}
32+
],
2633
"paths": {
2734
"@components/*": [
2835
"src/components/*"
@@ -58,4 +65,7 @@
5865
"*.astro",
5966
"*.tsx"
6067
],
68+
"exclude": [
69+
"node_modules"
70+
]
6171
}

0 commit comments

Comments
 (0)