Skip to content

Fix CI: build core before typecheck, fix null-narrowing in BlockEditor - #2

Merged
xofdev merged 1 commit into
mainfrom
feat/xproeditor-monorepo-packages
Jul 3, 2026
Merged

Fix CI: build core before typecheck, fix null-narrowing in BlockEditor#2
xofdev merged 1 commit into
mainfrom
feat/xproeditor-monorepo-packages

Conversation

@xofdev

@xofdev xofdev commented Jul 3, 2026

Copy link
Copy Markdown
Owner

CI ran typecheck before build, so @xproeditor/vue and @xproeditor/react couldn't resolve @xproeditor/core (its package.json points at ./dist, which didn't exist yet) — this cascaded into dozens of "cannot find module" and implicit-any errors. Reorder the workflow to build first.

Also fixes two genuine strict-null narrowing gaps in both BlockEditor implementations: dropTarget?.id === x ? dropTarget.position : ... and the equivalent for iconPickerRequest don't let TypeScript narrow the optional value across the ternary; rewritten as explicit && checks.

CI ran typecheck before build, so @xproeditor/vue and @xproeditor/react
couldn't resolve @xproeditor/core (its package.json points at ./dist,
which didn't exist yet) — this cascaded into dozens of "cannot find
module" and implicit-any errors. Reorder the workflow to build first.

Also fixes two genuine strict-null narrowing gaps in both BlockEditor
implementations: `dropTarget?.id === x ? dropTarget.position : ...` and
the equivalent for `iconPickerRequest` don't let TypeScript narrow the
optional value across the ternary; rewritten as explicit `&&` checks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@xofdev
xofdev merged commit e7ab214 into main Jul 3, 2026
3 checks passed
@xofdev
xofdev deleted the feat/xproeditor-monorepo-packages branch July 3, 2026 21:43
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.

2 participants