Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@imssurya is attempting to deploy a commit to the TypeCell Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
With
moduleResolution: node16/nodenextandskipLibCheck: false, the published@blocknote/core0.57.0 types give errors, because someimport typestatements have no.jsextension and end up in the.d.tsfiles as-is:With
skipLibCheck: truethere's no error, but the types those imports point to silently becomeany.Rationale
Value imports already use
.jseverywhere, sinceimport-eslint/extensionsenforces it. The rule skips type-only imports by default, so these slipped through (9 in core, 21 in xl-ai, plus 4 in the dev-scripts templates). TypeScript also writesimport("../..")paths in a couple of generated declarations because of them, which gives TS2307 under nodenext.Changes
.js(or/index.js) extension to every relativeimport typethat was missing one.checkTypeImports: trueforimport-eslint/extensionsso it stays that way.Only
import typelines change, so there's no runtime change.Impact
None for bundler resolution. nodenext users get correct types.
Testing
BlockNoteEditorfrom a packed@blocknote/core,nodenext,skipLibCheck: false: on TS 5.9.3, 6.0.3 and 7.0.2 the errors from@blocknote/corego from 7 (5 × TS2834, 2 × TS2307) to 0.Missing file extension; without it, the rule doesn't report it.pnpm typecheck,vp fmt --checkand the core tests (1505 passed) pass.pnpm lintreports the same results before and after; locally it has 17 errors that all come fromxl-typst-compilernot building here (its WASM step).Additional Notes
One more nodenext error is left on TS 6+:
BlockNoteEditor.d.tshasimport "../style.css", which gives TS2882. That needs a build change, so I left it out of this PR.🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
User Impact