The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 25, 19:45 UTC
Fix CI typecheck: point contracts types to source and remove dead code
- Point @t3tools/contracts type exports to ./src/index.ts instead of generated .d.cts/.d.mts files that only exist after build - Remove unused useGitState.ts that imported missing @tanstack/react-query Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Julius Marminge committed
Feb 11, 2026 at 12:06 UTC
74f6ce86004a39ffa07d59d468c78ae677e93c3d
2 files changed
+3
-15
apps/web/src/hooks/useGitState.ts
deleted
-12
@@ -1,12 +0,0 @@
1
-import { queryOptions, skipToken } from "@tanstack/react-query";
2
-import { readNativeApi } from "../session-logic";
3
-
4
-export const listBranchesQuery = (cwd: string | undefined) => {
5
- const api = readNativeApi();
6
-
7
- return queryOptions({
8
- queryKey: ["git-branches", cwd],
9
- queryFn: api && cwd ? () => api.git.listBranches({ cwd }) : skipToken,
10
- refetchOnWindowFocus: true,
11
- });
12
-};
packages/contracts/package.json
+3
-3
@@ -8,15 +8,15 @@
8
"type": "module",
9
"main": "./dist/index.cjs",
10
"module": "./dist/index.mjs",
11
- "types": "./src/index.d.cts",
11
+ "types": "./src/index.ts",
12
"exports": {
13
".": {
14
"import": {
15
- "types": "./src/index.d.mts",
15
+ "types": "./src/index.ts",
16
"default": "./dist/index.mjs"
17
},
18
"require": {
19
- "types": "./src/index.d.cts",
19
+ "types": "./src/index.ts",
20
"default": "./dist/index.cjs"
21
}
22
}