Repository navigation
feat(db): add subpath exports for db, operators, and all schema files - #1107
Conversation
Extracts the drizzle db instance into src/db.ts and drizzle operator re-exports into src/operators.ts, then registers ./db, ./operators, and ./schema/<name> subpath exports in package.json for all 32 schema files. Prerequisite for three follow-on PRs that eliminate @pagespace/db barrel imports across packages/lib, apps/web, and small apps. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 44 minutes and 26 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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 |
…xport - db.ts: ssl now reads DATABASE_SSL env var instead of hardcoded false - index.ts: operators re-exported from ./operators (single source of truth) - package.json: add ./schema subpath export for combined schema barrel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…#1107) * feat(db): add subpath exports for db, operators, and all schema files Extracts the drizzle db instance into src/db.ts and drizzle operator re-exports into src/operators.ts, then registers ./db, ./operators, and ./schema/<name> subpath exports in package.json for all 32 schema files. Prerequisite for three follow-on PRs that eliminate @pagespace/db barrel imports across packages/lib, apps/web, and small apps. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(db): env-configurable SSL, single operator source, add ./schema export - db.ts: ssl now reads DATABASE_SSL env var instead of hardcoded false - index.ts: operators re-exported from ./operators (single source of truth) - package.json: add ./schema subpath export for combined schema barrel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
Context
This is Agent 1 of 4 — the foundation PR in a series eliminating all ~290 remaining `@pagespace/db` barrel imports across the monorepo. The three follow-on PRs (packages/lib, apps/web, and small apps + ESLint config) depend on these subpath exports existing before they can land.
Merge order: this PR → packages/lib PR → apps/web PR → small apps PR
Subpath exports added
Test plan
🤖 Generated with Claude Code