chore: standardize repository config#994
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 3 minutes and 23 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (25)
✨ Finishing Touches🧪 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 |
❌ Deploy failed
📋 Build log (last lines)🤖 Powered by surge-preview |
|||||||||
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Code Review
This pull request updates the repository configuration, documentation, and build scripts to support Dumi-based documentation, Vercel deployments, and cleaner package distribution. Key changes include rewriting the README, updating example imports, configuring path aliases in .dumirc.ts and tsconfig.json, and adjusting package.json scripts. Feedback on these changes suggests packaging the entire assets directory to preserve .less files for consumers, restoring linting and type-checking in the prepublishOnly script, and optimizing the Vercel build command to only build the documentation.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| "files": [ | ||
| "assets/*.css", | ||
| "lib", | ||
| "es", | ||
| "assets/index.css" | ||
| "es" | ||
| ], |
There was a problem hiding this comment.
By restricting the packaged assets to only "assets/*.css", the source .less files (such as assets/index.less) will be excluded from the published npm package.
In the Ant Design ecosystem, consumers often import the source .less files directly (e.g., @import "~@rc-component/tabs/assets/index.less";) to customize theme variables. Excluding them will break these consumer builds.
Please include the entire assets directory to ensure both .css and .less files are packaged.
| "files": [ | |
| "assets/*.css", | |
| "lib", | |
| "es", | |
| "assets/index.css" | |
| "es" | |
| ], | |
| "files": [ | |
| "assets", | |
| "lib", | |
| "es" | |
| ], |
| "lint": "eslint src/ docs/examples/ --ext .tsx,.ts,.jsx,.js", | ||
| "now-build": "npm run build", | ||
| "prepublishOnly": "npm run lint && npm run test && npm run compile && rc-np", | ||
| "prepublishOnly": "npm run compile && rc-np", |
There was a problem hiding this comment.
Removing npm run lint and npm run test (or npm run tsc) from prepublishOnly removes the safety checks that prevent publishing broken, unlinted, or type-incorrect code to npm.
Since this PR introduces a new "tsc" script, it is highly recommended to run both lint and tsc as part of the prepublish checks to ensure code quality and type safety before publishing.
| "prepublishOnly": "npm run compile && rc-np", | |
| "prepublishOnly": "npm run lint && npm run tsc && npm run compile && rc-np", |
| { | ||
| "framework": "umijs", | ||
| "installCommand": "npm install", | ||
| "buildCommand": "npm run build", |
There was a problem hiding this comment.
On Vercel, you only need to build the documentation site (docs-dist).
Currently, npm run build runs both npm run compile (which compiles the library to lib and es for npm publishing) and npm run docs:build. Since .dumirc.ts configures aliases to resolve @rc-component/tabs directly from the src directory, compiling the library is redundant and unnecessarily slows down Vercel deployment builds.
Optimizing this to "npm run docs:build" will speed up Vercel builds.
| "buildCommand": "npm run build", | |
| "buildCommand": "npm run docs:build", |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #994 +/- ##
=======================================
Coverage 98.98% 98.98%
=======================================
Files 18 18
Lines 788 788
Branches 235 235
=======================================
Hits 780 780
Misses 8 8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Deployment failed with the following error: Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit |
|
Deployment failed with the following error: Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit |

Summary
@rc-component/tabs, including badges, install, usage, API, development, and release notes.now-build, align dumi output todocs-dist, and update docs examples to import from the scoped package entry.Test Plan
npx prettier --write --ignore-unknown README.md package.json tsconfig.json .dumirc.ts .github/dependabot.yml .github/workflows/*.yml .github/FUNDING.yml docs/index.md docs/examples/*.tsx vercel.jsonnpm run tscnpm test -- --runInBandnpm run buildnpx vercel build --yesnpm run lintRefs ant-design/ant-design#58514