Skip to content

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

Open
emily-shen wants to merge 4 commits into
mainfrom
emily/refactor-pt-2
Open

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

Conversation

@emily-shen
Copy link
Copy Markdown
Contributor

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

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
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

🦋 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
Copy link
Copy Markdown
Contributor

workers-devprod commented May 22, 2026

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
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 22, 2026

UnknownError: ProviderInitError

github run

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 22, 2026

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

View workflow run · To retry, trigger Bonk again.

Copy link
Copy Markdown
Contributor

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

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
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

✅ All changesets look good

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 22, 2026

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 on lines +3 to +7
describe("placeholder", () => {
it("should pass", ({ expect }) => {
expect(true).toBe(true);
});
});
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.

Meh!

"scripts": {
"build": "tsup",
"check:type": "tsc -p ./tsconfig.json",
"deploy": "echo 'no deploy'",
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.

No deploy but prerelease: true?
Do we plan to deploy this to npm? If not, should it just be marked as private: true?

Copy link
Copy Markdown
Contributor

@workers-devprod workers-devprod left a comment

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

3 participants