Skip to content

fix: gl-react-blur tsc declaration build + run full build in PR CI#515

Merged
gre merged 1 commit into
masterfrom
fix/blur-types
Jun 12, 2026
Merged

fix: gl-react-blur tsc declaration build + run full build in PR CI#515
gre merged 1 commit into
masterfrom
fix/blur-types

Conversation

@gre

@gre gre commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

Master's Release workflow is red since #514 merged: tsc -b rejects the connectSize(...) as React.ComponentType<P> casts (TS2352, insufficient overlap) — fixed with an as unknown as intermediate. This also blocks the first publish of gl-react-blur@6.0.0, which will go out when this merges.

Why PR CI didn't catch it: ci-tests.yml compiled packages with the babel loop only — tsc -b (declaration build) only ran in the Release workflow, on master, after merge. The PR build step now runs the full pnpm build (babel + tsc) so type errors fail the PR instead. (My local pre-push check also misread the build result by piping it into grep, losing the exit code — mea culpa, fixed my habits along with the workflow.)

Verification

  • pnpm build exit 0 (babel + tsc both clean)
  • pnpm test: 42/42 ✅
  • This PR's own build check now exercises the previously missing tsc step

🤖 Generated with Claude Code

The connectSize cast to React.ComponentType needs an unknown
intermediate (TS2352), which broke tsc -b on master's Release run.
PR CI didn't catch it because ci-tests only ran the babel loop, never
tsc: it now runs the full pnpm build so type errors fail PRs, not the
Release workflow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 12, 2026 21:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores TypeScript declaration builds for gl-react-blur by resolving TS2352 casting failures introduced by tsc -b, and updates PR CI to run the full build pipeline (Babel + tsc -b) so these issues are caught before merge/release.

Changes:

  • Update gl-react-blur connectSize(...) exports to use a double assertion (as unknown as React.ComponentType<...>) that tsc -b accepts.
  • Change PR CI to run pnpm build (which includes the declaration build) instead of only the per-package Babel loop.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/gl-react-blur/src/BlurV1D.tsx Adjust component export cast to satisfy tsc -b declaration build.
packages/gl-react-blur/src/BlurV.tsx Adjust component export cast to satisfy tsc -b declaration build.
packages/gl-react-blur/src/Blur1D.tsx Adjust component export cast to satisfy tsc -b declaration build.
packages/gl-react-blur/src/Blur.tsx Adjust component export cast to satisfy tsc -b declaration build.
.github/workflows/ci-tests.yml Run full pnpm build in PR CI so declaration-build type errors fail pre-merge.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/>
)
) as React.ComponentType<BlurV1DProps>;
) as unknown as React.ComponentType<BlurV1DProps>;
return rec(passes);
}
) as React.ComponentType<BlurVProps>;
) as unknown as React.ComponentType<BlurVProps>;
/>
)
) as React.ComponentType<Blur1DProps>;
) as unknown as React.ComponentType<Blur1DProps>;
return rec(passes);
}
) as React.ComponentType<BlurProps>;
) as unknown as React.ComponentType<BlurProps>;
@gre gre merged commit 74ee834 into master Jun 12, 2026
4 checks passed
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