Repository navigation
fix(cloudflare-worker): accept wrangler.toml alongside wrangler.jsonc - #3
Merged
Merged
Conversation
The verify-worker-structure step previously required wrangler.jsonc exclusively. Some workers — including orun-backend — use wrangler.toml (the original TOML format). Accept either file so the composition works with both config formats. The check now runs: test -f wrangler.jsonc || test -f wrangler.toml This is a non-breaking change: repos already using wrangler.jsonc continue to work exactly as before. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
verify-worker-structurestep in thecloudflare-workercomposition currently requireswrangler.jsoncto be present. This blocks projects that use the older (but still fully supported)wrangler.tomlformat — includingorun-backend, which useswrangler.tomlas specified.Change
Accept either
wrangler.jsoncorwrangler.toml. This is a non-breaking change: all repos currently usingwrangler.jsonccontinue to work without any modification.Why
wrangler.toml) is the original and is still commonly used.wrangler.jsonc) is the newer preferred format, but not universally adopted.cloudflare-workercomposition.Verification
cloudflare-workersmoke tests pass unchanged (they usewrangler.jsonc)wrangler.tomlnow passes the structure checkRelated
Raised during orun-backend DevOps setup: sourceplane/orun-backend#1