History

Fix CI typecheck: build contracts before typechecking dependents

- Change turbo typecheck task to dependsOn: ["^build"] so the contracts package generates .d.cts/.d.mts declaration files before downstream packages run tsc - Revert contracts types back to generated declaration files - Remove unused useGitState.ts that imported missing @tanstack/react-query

Julius Marminge committed 9 months ago

Commit 4ab095f1 parent 74f6ce82 files · +4 −4Browse files

Unified · Split

2 files
  1. packages/contracts/package.json +3 −3
  2. turbo.json +1 −1
packages/contracts/package.json+3−3
@@ -8,15 +8,15 @@ · 7 unmodified lines
88 "type": "module",
99 "main": "./dist/index.cjs",
1010 "module": "./dist/index.mjs",
11− "types": "./src/index.ts",
11+ "types": "./src/index.d.cts",
1212 "exports": {
1313 ".": {
1414 "import": {
15− "types": "./src/index.ts",
15+ "types": "./src/index.d.mts",
1616 "default": "./dist/index.mjs"
1717 },
1818 "require": {
19− "types": "./src/index.ts",
19+ "types": "./src/index.d.cts",
2020 "default": "./dist/index.cjs"
2121 }
2222 }
turbo.json+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323 "persistent": false
2424 },
2525 "typecheck": {
26− "dependsOn": ["^typecheck"],
26+ "dependsOn": ["^build"],
2727 "outputs": []
2828 },
2929 "test": {