fix: enforce internal Croco package ranges - #1194
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough내부 Changes내부 의존성 범위 정책
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📊 Benchmark Results✅ All benchmarks passed
Updated: 2026-07-04T00:27:58.420Z · Commit: cd1337e |
7a32c76 to
bbf3055
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/normalize-packages.mjs`:
- Around line 578-600: The exception builder in normalize-packages.mjs is
validating semver compatibility range errors but still returning an exception
object when range is invalid. Update the guard around the object returned by the
peerDependencies exception logic so it also rejects non-semver-compatible range
values, not just blank ones. Keep the check aligned with
isSemverCompatibilityRange, internalPeerDependencyRangeExceptionKey, and the
existing packageName/sectionName/dependencyName/rationale validations so invalid
ranges are never registered.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 85bdee88-0584-488e-ba7a-ec4ad931d041
📒 Files selected for processing (6)
.changeset/internal-range-policy.mddocs/release/package-entrypoint-contract.mdpackages/frontend-react/package.jsonscripts/internal-peer-dependency-range-exceptions.jsonscripts/normalize-packages.mjsscripts/tests/normalize-packages.spec.ts
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bf8f69224b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Fixes #1148.
Summary
workspace:*for actual internal@croco/*workspace references acrossdependencies,devDependencies,peerDependencies, andoptionalDependencies, including private workspace manifests.@croco/frontend-reactso its internal@croco/meta-vitedev/peer references useworkspace:*, and documents the publish-time policy.Verification
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm exec vitest run scripts/tests/normalize-packages.spec.ts --config vitest.config.ts- passed, 15 tests.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm package-manifests:check- passed, 110 checked, 2 skipped, 0 modified.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm exec oxlint scripts/normalize-packages.mjs scripts/tests/normalize-packages.spec.ts- passed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm exec oxfmt --check scripts/normalize-packages.mjs scripts/tests/normalize-packages.spec.ts- passed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm changeset-required:check -- --base origin/trunk --head HEAD- passed, no publishable package behavior changes detected.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm check- passed.git diff --checkandgit diff --cached --check- passed.Self-review gates
@croco/*names that are not workspace packages, covers private manifests, and rejects malformed, non-peer, non-semver, duplicate, and unused exceptions.workspace:*based on pnpm pack/publish rewriting, with a checked exception path for future intentional public semver peers.Review and QA
Notes
LEFTHOOK=0after the equivalent focused tests, manifest gate, repository check, changeset gate, lint, format, and diff checks above passed explicitly through Corepack/manual commands before PR creation.Summary by CodeRabbit