Skip to content

Commit 8077621

Browse files
committed
remove @cloudflare/workers-types
1 parent 70059f4 commit 8077621

9 files changed

Lines changed: 9 additions & 29 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
cache: "npm"
1616

1717
- run: npm ci
18+
- run: npm run cf-typegen
1819
- run: npm run typecheck
1920
- run: npm run lint
2021
- run: npm run format:check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
.wrangler/
33
coverage/
4+
worker-configuration.d.ts

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ Artifacts that target windows must be `.zip` files. All other non windows target
482482
git clone https://github.com/zigtools/release-worker
483483
cd release-worker
484484
npm install
485+
npm run cf-typegen
485486
npx wrangler d1 execute staging-db-backend --local --file=./migrations/0000_initial.sql
486487
npm run dev
487488
```

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ export default tseslint.config(
2828
},
2929
},
3030
{
31-
ignores: ["**/*.js", "**/*.mjs", "vitest.config.mts"],
31+
ignores: ["**/*.js", "**/*.mjs", "vitest.config.mts", "worker-configuration.d.ts"],
3232
},
3333
);

package-lock.json

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "wrangler dev",
88
"start": "wrangler dev",
99
"test": "vitest",
10-
"cf-typegen": "wrangler types --include-runtime=false --strict-vars=false",
10+
"cf-typegen": "wrangler types --strict-vars=false",
1111
"coverage": "vitest run --coverage",
1212
"typecheck": "tsc",
1313
"format": "prettier --write .",
@@ -16,7 +16,6 @@
1616
},
1717
"devDependencies": {
1818
"@cloudflare/vitest-pool-workers": "^0.12.0",
19-
"@cloudflare/workers-types": "^4.20250430.0",
2019
"@eslint/js": "^9.8.0",
2120
"@types/eslint__js": "^8.42.3",
2221
"@types/node": "^22.15.3",

test/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"types": [
5-
"@cloudflare/workers-types/experimental",
65
"@cloudflare/vitest-pool-workers"
76
]
87
},

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/* Specify how TypeScript looks up a file from a given module specifier. */
1515
"moduleResolution": "Bundler",
1616
/* Specify type package names to be included without being referenced in a source file. */
17-
"types": ["node", "@cloudflare/workers-types/2023-07-01"],
17+
"types": ["node"],
1818
/* Enable importing .json files */
1919
"resolveJsonModule": true,
2020

worker-configuration.d.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)