Skip to content

chore(build): add typecheck step to react and react-router - #31334

Merged
ShaneK merged 3 commits into
major-9.0from
FW-7656-2
Aug 6, 2026
Merged

chore(build): add typecheck step to react and react-router#31334
ShaneK merged 3 commits into
major-9.0from
FW-7656-2

Conversation

@ShaneK

@ShaneK ShaneK commented Aug 6, 2026

Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

Currently, @ionic/react and @ionic/react-router build with rollup and @rollup/plugin-typescript, which reports type errors as (!) [plugin typescript] warnings and still exits 0. Neither build-react nor build-react-router runs tsc --noEmit, so a type error can't fail CI. This is the same gap #31320 closed for @ionic/vue and @ionic/vue-router, and it came out of review feedback on that PR asking whether the typecheck step was worth adding to the other frameworks.

What is the new behavior?

Both React packages now have a typecheck script and a CI step that runs it between lint and build, matching the Vue packages. Neither package needed source changes: both already pass tsc --noEmit clean under the strict they inherit from core/tsconfig.base.json, so this is a guard against future regressions rather than a cleanup.

Angular is deliberately left alone. ng-packagr fails the build on type errors, so a separate step there would be redundant. I added a comment to build-angular and build-angular-server saying so, so the next person doesn't have to work it out again.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Follow-up to #31320, addressing @thetaPC's review comments

@ShaneK
ShaneK requested a review from thetaPC August 6, 2026 13:50
@ShaneK
ShaneK requested a review from a team as a code owner August 6, 2026 13:51
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview Aug 6, 2026 2:56pm

Request Review

@thetaPC thetaPC 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.

LGTM

@ShaneK
ShaneK merged commit 212c5f0 into major-9.0 Aug 6, 2026
53 checks passed
@ShaneK
ShaneK deleted the FW-7656-2 branch August 6, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: react @ionic/react package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants