diff --git a/bun.lock b/bun.lock index c651e3a6..3dbe4eac 100644 --- a/bun.lock +++ b/bun.lock @@ -291,6 +291,7 @@ }, "devDependencies": { "@tailwindcss/vite": "catalog:", + "@tsconfig/node22": "catalog:", "@types/bun": "catalog:", "tailwindcss": "catalog:", "typescript": "catalog:", diff --git a/packages/ui/package.json b/packages/ui/package.json index 520baf6e..0b3064e3 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -17,6 +17,7 @@ }, "devDependencies": { "@types/bun": "catalog:", + "@tsconfig/node22": "catalog:", "typescript": "catalog:", "vite": "catalog:", "vite-plugin-solid": "catalog:", diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index 8b4ebee2..440aa8f9 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -1,10 +1,11 @@ { + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "@tsconfig/node22/tsconfig.json", "compilerOptions": { // General "jsx": "preserve", "jsxImportSource": "solid-js", "target": "ESNext", - // Modules "allowSyntheticDefaultImports": true, "esModuleInterop": true, @@ -12,9 +13,16 @@ "module": "ESNext", "moduleResolution": "bundler", "noEmit": true, - + "lib": [ + "es2022", + "dom", + "dom.iterable" + ], // Type Checking & Safety "strict": true, - "types": ["vite/client"] + "types": [ + "vite/client", + "bun" + ] } }