Skip to content

Commit 6b08f02

Browse files
Fix type generation (#168)
We inline types from `@repo/shared` so that it includes the types we reexport. Fixes #165 Updated tsup to tsdown, and normalized some deps. Added typecheck steps to example repos (except basic, so that CI passes for this one). I'll do more monorepo maintenance after this change lands.
1 parent 02ee8fe commit 6b08f02

File tree

10 files changed

+1967
-854
lines changed

10 files changed

+1967
-854
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"access": "public",
1111
"baseBranch": "main",
1212
"updateInternalDependencies": "patch",
13-
"ignore": ["@cloudflare/sandbox-*"]
13+
"ignore": ["@cloudflare/sandbox-*", "@repo/*"]
1414
}

.changeset/giant-paths-enjoy.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/sandbox": patch
3+
---
4+
5+
Fix type generation
6+
7+
We inline types from `@repo/shared` so that it includes the types we reexport. Fixes #165

examples/claude-code/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
"deploy": "wrangler deploy",
99
"dev": "wrangler dev",
1010
"start": "wrangler dev",
11-
"types": "wrangler types"
11+
"types": "wrangler types",
12+
"typecheck": "tsc --noEmit"
1213
},
1314
"devDependencies": {
14-
"@cloudflare/sandbox": "^0.4.3",
15+
"@cloudflare/sandbox": "*",
1516
"@types/node": "^24.9.1",
1617
"typescript": "^5.8.3",
1718
"wrangler": "^4.44.0"

examples/code-interpreter/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
"deploy": "wrangler deploy",
99
"dev": "wrangler dev",
1010
"start": "wrangler dev",
11-
"cf-typegen": "wrangler types"
11+
"cf-typegen": "wrangler types",
12+
"typecheck": "tsc --noEmit"
1213
},
1314
"author": "",
1415
"license": "MIT",
1516
"dependencies": {
16-
"@cloudflare/sandbox": "^0.4.12",
17+
"@cloudflare/sandbox": "*",
1718
"openai": "^5.12.0"
1819
},
1920
"devDependencies": {
20-
"@types/node": "^24.1.0",
21+
"@types/node": "^24.9.1",
2122
"typescript": "^5.8.3",
22-
"wrangler": "^4.41.0"
23+
"wrangler": "^4.44.0"
2324
}
2425
}

examples/minimal/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
"deploy": "wrangler deploy",
99
"dev": "wrangler dev",
1010
"start": "wrangler dev",
11-
"cf-typegen": "wrangler types"
11+
"cf-typegen": "wrangler types",
12+
"typecheck": "tsc --noEmit"
1213
},
1314
"devDependencies": {
14-
"@cloudflare/sandbox": "^0.4.3",
15-
"@types/node": "^24.1.0",
15+
"@cloudflare/sandbox": "*",
16+
"@types/node": "^24.9.1",
1617
"typescript": "^5.8.3",
17-
"wrangler": "^4.41.0"
18+
"wrangler": "^4.44.0"
1819
},
1920
"author": "",
2021
"license": "MIT"

0 commit comments

Comments
 (0)