Repository navigation
ci(cli): gate PRs and deploy on CLI strict typecheck - #4297
Merged
Merged
Conversation
Wire `pnpm -F @astryxdesign/cli typecheck:strict` (full-package strict checkJs over src, bin, scripts, docs, and the emitted templates) into CI as a required gate — the follow-up #4275 promised once the tree was clean, now unblocked by #4283 driving strict errors to zero. Mirrors the repo's existing typecheck-gate convention: added to the build-storybook job in ci.yml (PRs + merge queue) and the test job in deploy.yml (push to main / deploy). Both jobs already run `pnpm build` first, which strict typecheck requires so the template .tsx sources can resolve the built @astryxdesign/{core,charts,lab} types. Also updates packages/cli/CONTRIBUTING.md, which documented this as "not yet wired into CI." Co-authored-by: Cursor <[email protected]>
josephfarina
requested review from
cixzhang,
ejhammond and
imdreamrunner
as code owners
July 24, 2026 20:33
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
checkJstypecheck (pnpm -F @astryxdesign/cli typecheck:strict, backed bytsconfig.strict.json) into CI as a required gate — the follow-up feat(cli): add opt-in strict checkJs typecheck command #4275 promised once the tree was strict-clean, now unblocked by fix(cli): make .mjs sources fully strict-typecheckable (checkJs + JSDoc, 1717 → 0) #4283 driving strict errors from 1717 → 0.ci.yml→build-storybookjob (runs on PRs and the merge queue), folded into the historicalbuildcheck.deploy.yml→testjob (runs on push to main, gating the deploy) — matching the in-file note that deploy mirrors the PR typecheck gates so a type error can't land on main undetected.pnpm buildbefore the typecheck steps, which strict typecheck requires: the emitted template.tsxfiles import built workspace packages, so they need@astryxdesign/{core,charts,lab}disttypes to resolve.packages/cli/CONTRIBUTING.md, which previously documented this as "not yet wired into CI."Verification
Ran the exact CI sequence locally on
main(cleanCI=true pnpm install --frozen-lockfile→pnpm build→pnpm -F @astryxdesign/cli typecheck:strict): passes with zero errors, so the new gate is green on the current tree.Notes
CONTRIBUTING.md; no publishable package source changes.Test plan
build) runs the new Typecheck CLI (strict) step and passes.docsite_only).testjob runs the strict typecheck before publishing.Made with Cursor