Repository navigation
ci: check that package exports point at built files - #146
Conversation
prepublishOnly runs verify:exports only at release time, after semantic-release has pushed the tag. Running it after the CI build reports a missing export target on the pull request instead.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe CI workflow now runs package export validation immediately after the build, catching missing or stale export targets during pull-request checks instead of only during Flow diagram for CI package export validationflowchart LR
TestLint[Test & Lint job] --> Build[pnpm run build]
Build --> Verify[pnpm run verify:exports]
Verify --> Lint[pnpm run lint]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe CI workflow now runs ChangesCI export verification
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to CI now checks package exports after the build, and the invocation and generated-file scope are consistent. No merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR Summary by Qodoci: verify package exports after the build
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link |
## [0.12.10](v0.12.9...v0.12.10) (2026-10-08) ### feat * **emergent:** forged code runs through an executor interface, and a CI run measures QuickJS (#148) ([3c5832a](3c5832a)) ### docs * audit follow-ups to the GMI step contract and gateway docs (#147) ([000547a](000547a)) * **gmi:** correct the step contract and document completion options, history and the gateway (#145) ([ff883a4](ff883a4)) ### ci * check that package exports point at built files (#146) ([fee43be](fee43be))
Summary
verify:exports(scripts/package-exports.test.mjs) checks that every target inpackage.jsonexportsis a file the build produced. It runs only inprepublishOnly, which npm runs during the release, after semantic-release has pushed the version tag. This adds it to the CITest & Lintjob right after the build, so a missing export target fails the pull request that causes it.None of the 112 export targets is under
knowledge/, so the check needs onlypnpm run build, which the job already runs.Linked issues
None.
Type of change
How this was verified
The CI run on this pull request: the new step runs after
BuildinTest & Lint.Migration notes
None.
Checklist
!before the colon for a change that breaks users (feat!:orfeat(api)!:).Summary by Sourcery
CI:
Summary by CodeRabbit