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 @@
88 "type": "module",
99 "main": "./dist/index.cjs",
1010 "module": "./dist/index.mjs",
11 "types": "./src/index.d.cts",
11 "types": "./src/index.ts",
1212 "exports": {
1313 ".": {
1414 "import": {
15 "types": "./src/index.d.mts",
15 "types": "./src/index.ts",
1616 "default": "./dist/index.mjs"
1717 },
1818 "require": {
19 "types": "./src/index.d.cts",
19 "types": "./src/index.ts",
2020 "default": "./dist/index.cjs"
2121 }
2222 }