Skip to content

Conversation

@penalosa
Copy link
Contributor

Fixes https://jira.cfdata.org/browse/DEVX-2327


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: tracked elsewhere
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: not a wrangler change

@penalosa penalosa added the skip-v3-pr Skip validation of presence of a v3 backport PR label Nov 21, 2025
@penalosa penalosa requested a review from a team as a code owner November 21, 2025 16:18
@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2025

🦋 Changeset detected

Latest commit: da7ee5e

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 21, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11375

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11375

miniflare

npm i https://pkg.pr.new/miniflare@11375

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11375

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11375

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11375

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11375

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11375

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11375

wrangler

npm i https://pkg.pr.new/wrangler@11375

commit: da7ee5e

Base automatically changed from penalosa/autoconfig-astro to main November 25, 2025 11:22
Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great stuff! 😄

function transformViteConfig(projectPath: string) {
const filePath = path.join(
projectPath,
`vite.config.${usesTypescript(projectPath) ? "ts" : "js"}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, possibly something we might want consider down the line, a TS project could also have a vite.config.js file, maybe we might want to check all types? 🤔

It's just a thought, I think this might be pretty edge-case anyways 🙂

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that is an edge case. I'd imagine it's quite common for TypeScript projects to still have vite.config.js files. I think it needs to check both.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made it check both in da7ee5e

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Nov 25, 2025
@penalosa penalosa force-pushed the penalosa/c3-auto-tan branch from d00c475 to 849a4c8 Compare November 27, 2025 16:32
Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still looks great to me! 😄

(besides the potentially unintentional Astro changeset)

Copy link
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the point about the config file, this looks great. Let's get this in so we can use the codemod helper for other frameworks

@penalosa penalosa merged commit 9a1de61 into main Nov 28, 2025
38 of 40 checks passed
@penalosa penalosa deleted the penalosa/c3-auto-tan branch November 28, 2025 13:41
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-v3-pr Skip validation of presence of a v3 backport PR

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants