From 9981ee76d2370fcf9f4367a884e79c5bb5d4e942 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 10 Dec 2025 20:44:52 -0800 Subject: [PATCH] Update TS configs and add typecheck script --- .gitignore | 2 ++ apps/tauri/tsconfig.json | 3 +-- apps/tauri/tsconfig.node.json | 4 ++-- package.json | 3 ++- tsconfig.json | 3 --- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 33983bc75..92d07d02f 100644 --- a/.gitignore +++ b/.gitignore @@ -447,6 +447,8 @@ sd_init.json .github/scripts/deps .vite-inspect vite.config.ts.* +vite.config.js +vite.config.d.ts /test-data /config.json diff --git a/apps/tauri/tsconfig.json b/apps/tauri/tsconfig.json index 37b69830a..2117c1047 100644 --- a/apps/tauri/tsconfig.json +++ b/apps/tauri/tsconfig.json @@ -26,6 +26,5 @@ "~/*": ["./src/*"] } }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "vite.config.ts"] } diff --git a/apps/tauri/tsconfig.node.json b/apps/tauri/tsconfig.node.json index 1caabefce..5ef118721 100644 --- a/apps/tauri/tsconfig.node.json +++ b/apps/tauri/tsconfig.node.json @@ -1,11 +1,11 @@ { "compilerOptions": { - "composite": true, "skipLibCheck": true, "module": "ESNext", "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, - "strict": true + "strict": true, + "noEmit": true }, "include": ["vite.config.ts"] } diff --git a/package.json b/package.json index 1c4f10cf5..11e968f4e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "spacedrive", "private": true, "scripts": { - "preinstall": "npx only-allow bun" + "preinstall": "npx only-allow bun", + "typecheck": "bun run --filter @sd/tauri typecheck" }, "devDependencies": { "@babel/plugin-syntax-import-assertions": "^7.24.0", diff --git a/tsconfig.json b/tsconfig.json index 6e42b640d..0c1058c0d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,9 +4,6 @@ { "path": "apps/tauri" }, - { - "path": "apps/api" - }, { "path": "packages/ui" },