Skip to content

Commit afd1263

Browse files
authored
feat(cloudflare): switch from @cloudflare/workers-types to wrangler types (#127)
1 parent 8c5f961 commit afd1263

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

cloudflare-d1/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"db:migrate": "wrangler d1 migrations apply --local DB",
1111
"db:migrate-production": "dotenv -- drizzle-kit migrate",
1212
"cf-typegen": "wrangler types",
13-
"typecheck": "npm run cf-typegen && react-router typegen && tsc -b"
13+
"typecheck": "npm run cf-typegen && react-router typegen && tsc -b",
14+
"postinstall": "npm run cf-typegen"
1415
},
1516
"dependencies": {
1617
"drizzle-orm": "~0.36.3",
@@ -21,7 +22,6 @@
2122
},
2223
"devDependencies": {
2324
"@cloudflare/vite-plugin": "^1.0.12",
24-
"@cloudflare/workers-types": "^4.20250429.0",
2525
"@react-router/dev": "^7.5.3",
2626
"@tailwindcss/vite": "^4.1.4",
2727
"@types/node": "^20",

cloudflare-d1/tsconfig.cloudflare.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"composite": true,
1414
"strict": true,
1515
"lib": ["DOM", "DOM.Iterable", "ES2022"],
16-
"types": ["@cloudflare/workers-types", "node", "vite/client"],
16+
"types": [ "node", "vite/client"],
1717
"target": "ES2022",
1818
"module": "ES2022",
1919
"moduleResolution": "bundler",

cloudflare/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"preview": "npm run build && vite preview",
88
"deploy": "npm run build && wrangler deploy",
99
"cf-typegen": "wrangler types",
10-
"typecheck": "npm run cf-typegen && react-router typegen && tsc -b"
10+
"typecheck": "npm run cf-typegen && react-router typegen && tsc -b",
11+
"postinstall": "npm run cf-typegen"
1112
},
1213
"dependencies": {
1314
"isbot": "^5.1.27",
@@ -17,7 +18,6 @@
1718
},
1819
"devDependencies": {
1920
"@cloudflare/vite-plugin": "^1.0.12",
20-
"@cloudflare/workers-types": "^4.20250429.0",
2121
"@react-router/dev": "^7.5.3",
2222
"@tailwindcss/vite": "^4.1.4",
2323
"@types/node": "^20",

cloudflare/tsconfig.cloudflare.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"composite": true,
1313
"strict": true,
1414
"lib": ["DOM", "DOM.Iterable", "ES2022"],
15-
"types": ["@cloudflare/workers-types", "vite/client"],
15+
"types": ["vite/client"],
1616
"target": "ES2022",
1717
"module": "ES2022",
1818
"moduleResolution": "bundler",

pnpm-lock.yaml

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)