Skip to content

Commit a5f0872

Browse files
committed
chore: use wrangler typegen instead of types package
Closes #394 Signed-off-by: flakey5 <[email protected]>
1 parent 73379d8 commit a5f0872

File tree

4 files changed

+7407
-5
lines changed

4 files changed

+7407
-5
lines changed

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"test": "node --run test:unit && node --run test:e2e",
1212
"test:unit": "node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout --import=tsx ./tests/unit/index.test.ts",
1313
"test:e2e": "wrangler deploy --dry-run --outdir=dist && node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout --import=tsx ./tests/e2e/index.test.ts",
14-
"build:mustache": "node scripts/compile-mustache.mjs"
14+
"build:mustache": "node scripts/compile-mustache.mjs",
15+
"build:workers-types": "wrangler types --include-env=false"
1516
},
1617
"devDependencies": {
17-
"@cloudflare/workers-types": "^4.20250722.0",
1818
"@eslint/eslintrc": "^3.2.0",
1919
"@eslint/js": "^9.32.0",
2020
"@reporters/github": "^1.7.2",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lib": ["es2021", "es2022"],
55
"module": "esnext",
66
"moduleResolution": "node",
7-
"types": ["@cloudflare/workers-types"],
7+
"types": ["./worker-configuration.d.ts"],
88
"resolveJsonModule": true,
99
"allowJs": true,
1010
"checkJs": false,

0 commit comments

Comments
 (0)