Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

👷 ci: skip test files in the repo type-check (#20353)

Arvin Xuf56a817d6d34
diff --git a/package.json b/package.json
index 5debeee46bd..ce4c46b23e5 100644
--- a/package.json
+++ b/package.json
@@ -131,7 +131,7 @@
"test-app:coverage": "vitest --coverage --silent='passed-only'",
"tunnel:cloudflare": "cloudflared tunnel --url http://localhost:3010 --protocol http2",
"tunnel:ngrok": "ngrok http http://localhost:3010",
- "type-check": "tsgo --noEmit --checkers 2",
+ "type-check": "tsgo -p tsconfig.type-check.json --noEmit --checkers 2",
"type-check:tsc": "tsc --noEmit",
"workflow:cdn": "tsx ./scripts/cdnWorkflow/index.ts",
"workflow:changelog": "tsx ./scripts/changelogWorkflow/index.ts",
diff --git a/tsconfig.type-check.json b/tsconfig.type-check.json
new file mode 100644
index 00000000000..10dd7def3d1
--- /dev/null
+++ b/tsconfig.type-check.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "exclude": [
+ "node_modules",
+ "apps/desktop/**",
+ "apps/mobile/**",
+ "apps/share/**",
+ "apps/workbench/**",
+ "tmp",
+ "temp",
+ ".temp",
+ "e2e/**",
+ "knip.ts",
+ "packages/alint/fixtures/**",
+ "packages/*/alint/fixtures/**",
+ "**/*.test.ts",
+ "**/*.test.tsx",
+ "**/__tests__/**",
+ "**/__mocks__/**",
+ "tests/**"
+ ],
+ "extends": "./tsconfig.json",
+ "references": [
+ {
+ "path": "./apps/desktop"
+ }
+ ]
+}