You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve TypeScript errors and Rollup build issue
- Fix TypeScript errors in project-faq.tsx:
- Remove unused imports (cn, FAQAnswer type)
- Fix RepoStats type usage (removed non-existent health/activity properties)
- Properly handle pr.author object structure for contributor indexing
- Remove unsupported title prop from Sparkles icon
- Fix TypeScript errors in faq-service.ts:
- Remove unused imports and variables
- Fix type casting for cache service
- Handle contributor data structure properly in reduce operations
- Fix sort function type assertions
- Work around Rollup conditional expression bug:
- Temporarily disable treeshaking to fix build error
- Added TODO to re-enable once Rollup issue is resolved
- Reference: rollup/rollup#5747
Build now completes successfully with all TypeScript errors resolved.
return`${owner}/${repo} has ${uniqueContributors} unique contributors who have submitted pull requests ${timeRangeText}. This indicates ${uniqueContributors>=20 ? 'a healthy and active' : uniqueContributors>=10 ? 'a moderate' : 'a small but focused'} contributor community.`;
0 commit comments