Skip to content

add new deploy-helpers package to be used in cf cli - #14014

Merged
emily-shen merged 4 commits into
mainfrom
emily/refactor-pt-2
May 26, 2026
Merged

add new deploy-helpers package to be used in cf cli#14014
emily-shen merged 4 commits into
mainfrom
emily/refactor-pt-2

Conversation

@emily-shen

@emily-shen emily-shen commented May 22, 2026

Copy link
Copy Markdown
Contributor

Scaffolding the deploy-helpers package, which will be used by the cf-cli.

Inside the deploy-helpers package there is currently only types.
These types are for the merged config/args input that will go into the deploy/upload functions that are shared by cf cli and wrangler. (i haven't added these in yet, but i needed something to go in the package 😅).
I'm not sure what args cf cli will have, and what config shape exactly, so we will just let cf cli do its own config transformation into this intermediate type.

This has also required moving a few more types and utils into workers-utils. This is in the first commit.

I've also added an (unused) flag --x-deploy-helpers that will gate the incoming deploy refactor. The plan is to add the new deploy/upload path while keeping the old path around, and the flag can be used as an escape hatch if we have broken anything.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: refactor

A picture of a cute animal (not mandatory, but encouraged)

Moves Entry, EphemeralDirectory, AssetsOptions, LegacyAssetPaths types
@changeset-bot

changeset-bot Bot commented May 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5290587

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@cloudflare/deploy-helpers Minor
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk May 22, 2026
@workers-devprod
workers-devprod requested review from a team and petebacondarwin and removed request for a team May 22, 2026 15:10
@workers-devprod

workers-devprod commented May 22, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@emily-shen
emily-shen force-pushed the emily/refactor-pt-2 branch from 6bf4408 to 658ac2b Compare May 22, 2026 15:12
@ask-bonk

ask-bonk Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

UnknownError: ProviderInitError

github run

@ask-bonk

ask-bonk Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

@emily-shen Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional findings.

Open in Devin Review

@emily-shen
emily-shen force-pushed the emily/refactor-pt-2 branch from 658ac2b to f349605 Compare May 22, 2026 15:16
@github-actions

github-actions Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@pkg-pr-new

pkg-pr-new Bot commented May 22, 2026

Copy link
Copy Markdown
create-cloudflare

npm i https://pkg.pr.new/cloudflare/workers-sdk/create-cloudflare@14014

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/deploy-helpers@14014

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/kv-asset-handler@14014

miniflare

npm i https://pkg.pr.new/cloudflare/workers-sdk/miniflare@14014

@cloudflare/pages-shared

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/pages-shared@14014

@cloudflare/unenv-preset

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/unenv-preset@14014

@cloudflare/vite-plugin

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/vite-plugin@14014

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

npm i https://pkg.pr.new/cloudflare/workers-sdk/wrangler@14014

commit: 5290587

@emily-shen
emily-shen force-pushed the emily/refactor-pt-2 branch from f349605 to ec42526 Compare May 22, 2026 15:35
@emily-shen
emily-shen force-pushed the emily/refactor-pt-2 branch from ec42526 to 5290587 Compare May 22, 2026 15:42
Comment thread packages/deploy-helpers/tests/index.test.ts
Comment thread packages/deploy-helpers/package.json

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk May 22, 2026
@emily-shen
emily-shen merged commit d042705 into main May 26, 2026
64 checks passed
@emily-shen
emily-shen deleted the emily/refactor-pt-2 branch May 26, 2026 09:20
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants