-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(wrangler): Add type generation support to wrangler dev
#11616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 6a07dcb The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
wrangler devwrangler dev
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
dario-piotrowicz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks almost ready to me, I just think that there are a few bits off with tests maybe 🙂
dario-piotrowicz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 😄
* Added initial `wrangler dev` type generation support * Minor `wrangler dev` type generation refactoring * Add initial `wrangler dev` type generation tests * Improved dev code generation tests * Fixed worker utils package validation tests * Minor `wrangler dev` type generation test fixes * Fixed unsupported fields validation test fixture * Added changeset * Minor type generation property casing fixes * Improved changelog details * Fixed `wrangler dev` tests for type generation * Minor `checkTypesDiff` refactoring * Minor `wrangler dev` type generation test refactoring * Fixed `dev.generate_types` default value * Moved `resolveConfig` comment inside of `checkTypesDiff` * Updated `wrangler dev --types` doc comment description * Fixed `wrangler dev --types` "file is up to date" test
…lare#11616) * Added initial `wrangler dev` type generation support * Minor `wrangler dev` type generation refactoring * Add initial `wrangler dev` type generation tests * Improved dev code generation tests * Fixed worker utils package validation tests * Minor `wrangler dev` type generation test fixes * Fixed unsupported fields validation test fixture * Added changeset * Minor type generation property casing fixes * Improved changelog details * Fixed `wrangler dev` tests for type generation * Minor `checkTypesDiff` refactoring * Minor `wrangler dev` type generation test refactoring * Fixed `dev.generate_types` default value * Moved `resolveConfig` comment inside of `checkTypesDiff` * Updated `wrangler dev --types` doc comment description * Fixed `wrangler dev --types` "file is up to date" test
Fixes https://jira.cfdata.org/browse/DEVX-2342
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "example", "main": "src/index.ts", "compatibility_date": "2025-12-12", "dev": { "generate_types": true } }wrangler devcloudflare-docs#27088A picture of a cute animal (not mandatory, but encouraged)