authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-11 12:06:58-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-11 12:06:58-08:00
log74f6ce86004a39ffa07d59d468c78ae677e93c3d
treeaf7168f201da300b6dfeecc0d63dd8968acb7ede
parentd6437a7e131ab98706efe31263cddb4ae957557a

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>

2 files changed, 3 insertions(+), 15 deletions(-)

apps/web/src/hooks/useGitState.ts deleted-12
...@@ -1,12 +0,0 @@
1import { queryOptions, skipToken } from "@tanstack/react-query";
2import { readNativeApi } from "../session-logic";
3
4export 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,15 +8,15 @@
8 "type": "module",8 "type": "module",
9 "main": "./dist/index.cjs",9 "main": "./dist/index.cjs",
10 "module": "./dist/index.mjs",10 "module": "./dist/index.mjs",
11 "types": "./src/index.d.cts",11 "types": "./src/index.ts",
12 "exports": {12 "exports": {
13 ".": {13 ".": {
14 "import": {14 "import": {
15 "types": "./src/index.d.mts",15 "types": "./src/index.ts",
16 "default": "./dist/index.mjs"16 "default": "./dist/index.mjs"
17 },17 },
18 "require": {18 "require": {
19 "types": "./src/index.d.cts",19 "types": "./src/index.ts",
20 "default": "./dist/index.cjs"20 "default": "./dist/index.cjs"
21 }21 }
22 }22 }