Skip to content

[examples] Chore: Disable skipLibCheck in react-rich for lib-types regression coverage (#7093)#8473

Merged
etrepum merged 1 commit into
facebook:mainfrom
markselby9:chore/7093-skiplibcheck-react-rich
May 7, 2026
Merged

[examples] Chore: Disable skipLibCheck in react-rich for lib-types regression coverage (#7093)#8473
etrepum merged 1 commit into
facebook:mainfrom
markselby9:chore/7093-skiplibcheck-react-rich

Conversation

@markselby9
Copy link
Copy Markdown
Contributor

@markselby9 markselby9 commented May 7, 2026

Summary

Closes #7093 — the follow-up to #7080: "we don't currently have a way to verify that there aren't any skipLibCheck false regressions. It would make sense to have at least one of our examples configured as such with React 19 and a newer typescript."

Sets skipLibCheck: false on examples/react-rich/tsconfig.json. The example's existing tsc && vite build step is exercised by the integration tests in scripts/__tests__/integration/prepare-release.test.mjs (which calls describeExample for every examples/*), so any future @types/react or typescript-lib regression in the published Lexical .d.ts surface will fail that build.

react-rich was picked because it already pins the modern stack you specified (react@^19.2.5, typescript@^5.9.2) and is the canonical React example exercising the bulk of @lexical/react.

CI surface

The integration-tests workflow runs on after-approval.yml and on tests-extended.yml when a maintainer adds the extended-tests or dependencies label. It does not run on every PR by default (tests.yml has paths-ignore: examples/**). So this is passive regression coverage that triggers post-approval / on-label, not a per-PR gate.

Verification

$ cd examples/react-rich
$ ./node_modules/.bin/tsc --noEmit
$ echo $?
0

Scope

One-line config flip in examples/react-rich/tsconfig.json. No source / build-script / CI workflow changes. The sibling tsconfig.node.json is intentionally left alone — plain tsc (used by npm run build) doesn't walk project references, so flipping it would have been dead weight.

Closes #7093

…overage

Closes facebook#7093. Configures examples/react-rich with skipLibCheck: false so
the example's `tsc && vite build` step (already exercised by the
prepare-release integration tests in scripts/__tests__/integration/) acts
as a regression check on the published Lexical packages' .d.ts surface
against React 19 + TypeScript 5.9.

react-rich was picked because it already pins react@^19.2.5 and
typescript@^5.9.2 and is the canonical React example exercising the bulk
of @lexical/react.

Verified locally that `tsc --noEmit` from the example dir exits 0 against
the current published 0.44.0 packages.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment May 7, 2026 6:24am
lexical-playground Ready Ready Preview, Comment May 7, 2026 6:24am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 7, 2026
@markselby9 markselby9 changed the title [examples] react-rich: enable skipLibCheck for typecheck regression coverage (#7093) [examples] Chore: Disable skipLibCheck in react-rich for lib-types regression coverage (#7093) May 7, 2026
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label May 7, 2026
@etrepum etrepum added this pull request to the merge queue May 7, 2026
Merged via the queue into facebook:main with commit b3c9011 May 7, 2026
42 checks passed
@etrepum etrepum mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chore: Add integration test for skipLibCheck false + React 19

2 participants