Skip to content

fix(codepush): forward jsxRuntimes through the partial configuration - #17

Merged
Fiona2016 merged 1 commit into
publishfrom
fix/codepush-forward-jsx-runtimes
Aug 27, 2026
Merged

fix(codepush): forward jsxRuntimes through the partial configuration#17
Fiona2016 merged 1 commit into
publishfrom
fix/codepush-forward-jsx-runtimes

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

buildPartialConfiguration in the codepush package builds a RequiredOrDiscard<AutoInstrumentationConfiguration> specifically so that adding a field to that type cannot silently skip this path. Adding jsxRuntimes in #15 did exactly that, and the guard did its job.

The catch is when it fired. The type error only appears while building declaration files (lerna run prepare), which yarn test does not do — so CI stayed green on #15 and the failure only surfaced when the release workflow ran prepare before publishing. Nothing was published: all four packages are still absent from npm at 0.1.4, with 0.1.3 serving as the negative control.

This forwards the field and extends the two assertions that enumerate the resulting configuration.

Verified locally: lerna run prepare succeeds for all 9 projects, 882 tests pass, lint reports no errors.

Worth considering separately: the test workflow could run the declaration build too, so this class of error is caught on the PR rather than at publish time.

`buildPartialConfiguration` builds a `RequiredOrDiscard<AutoInstrumentationConfiguration>`
precisely so that a new field cannot be added without this path being updated to carry
it. Adding `jsxRuntimes` did exactly that, and the guard caught it - during the
declaration build, which the test suite does not run, so it only surfaced when a
release tried to publish.

Forward the field, and extend the two assertions that enumerate the resulting
configuration.
@Fiona2016
Fiona2016 merged commit 4d9ef60 into publish Aug 27, 2026
1 check passed
@Fiona2016
Fiona2016 deleted the fix/codepush-forward-jsx-runtimes branch August 27, 2026 04:39
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