| author | |
| committer | |
| log | 74f6ce86004a39ffa07d59d468c78ae677e93c3d |
| tree | af7168f201da300b6dfeecc0d63dd8968acb7ede |
| parent | d6437a7e131ab98706efe31263cddb4ae957557a |
- 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 @@ |
| 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 | 8 | "type": "module", |
| 9 | 9 | "main": "./dist/index.cjs", |
| 10 | 10 | "module": "./dist/index.mjs", |
| 11 | "types": "./src/index.d.cts", | |
| 11 | "types": "./src/index.ts", | |
| 12 | 12 | "exports": { |
| 13 | 13 | ".": { |
| 14 | 14 | "import": { |
| 15 | "types": "./src/index.d.mts", | |
| 15 | "types": "./src/index.ts", | |
| 16 | 16 | "default": "./dist/index.mjs" |
| 17 | 17 | }, |
| 18 | 18 | "require": { |
| 19 | "types": "./src/index.d.cts", | |
| 19 | "types": "./src/index.ts", | |
| 20 | 20 | "default": "./dist/index.cjs" |
| 21 | 21 | } |
| 22 | 22 | } |