Skip to content

fix: parse wrangler.jsonc as JSONC in the production config projection - #12

Merged
codeyogi911 merged 1 commit into
mainfrom
fix/production-config-jsonc
Aug 7, 2026
Merged

fix: parse wrangler.jsonc as JSONC in the production config projection#12
codeyogi911 merged 1 commit into
mainfrom
fix/production-config-jsonc

Conversation

@codeyogi911

Copy link
Copy Markdown
Owner

The committed Wrangler configuration gained comments in #11, but the production deploy path still read it with JSON.parse, so every deploy:production run failed before reaching Wrangler.

  • Parse the source with jsonc-parser (new dev dependency of @able/desk, per the package-first policy) and reject invalid or non-object JSONC.
  • Cover the committed wrangler.jsonc itself in the projection tests so the deploy path can never drift from the source format again, alongside an invalid-source rejection test.

npm run check passes, and a local dry run of build:production-config produces a correct projection for a predecessor-named Worker.

🤖 Generated with Claude Code

The committed Wrangler configuration gained comments, but the production
deploy path still read it with JSON.parse, so every deploy:production run
failed before reaching Wrangler. Parse it with jsonc-parser and cover the
committed file itself so the projection cannot drift from the source
format again.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codeyogi911
codeyogi911 enabled auto-merge (squash) August 7, 2026 10:30
@codeyogi911
codeyogi911 merged commit d1dfa78 into main Aug 7, 2026
5 checks passed
@codeyogi911
codeyogi911 deleted the fix/production-config-jsonc branch August 7, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant