Skip to content

Expose DB workspace package entrypoint#3343

Open
shaiananvari8 wants to merge 2 commits into
SecureBananaLabs:mainfrom
shaiananvari8:codex/db-package-entrypoint-3342
Open

Expose DB workspace package entrypoint#3343
shaiananvari8 wants to merge 2 commits into
SecureBananaLabs:mainfrom
shaiananvari8:codex/db-package-entrypoint-3342

Conversation

@shaiananvari8
Copy link
Copy Markdown

@shaiananvari8 shaiananvari8 commented Jun 1, 2026

/claim #743

Closes #3342

Summary

  • add a Node-resolvable @freelanceflow/db package entrypoint that re-exports @prisma/client
  • add matching package types and exports metadata for workspace consumers
  • add a focused package import regression test proving the workspace package name resolves and exposes PrismaClient
  • add a short demo GIF for the Algora bounty review

Root cause

packages/db was linked into node_modules by npm workspaces, but its package.json had no main, types, or exports entrypoint. Node package resolution therefore looked for a missing root index.js and require.resolve("@freelanceflow/db") failed.

Demo

DB package entrypoint demo

Validation

  • npm test -w packages/db
  • node -e "const db = require('@freelanceflow/db'); console.log(typeof db.PrismaClient)"
  • node -e "import('@freelanceflow/db').then((db) => { console.log(typeof (db.PrismaClient || db.default?.PrismaClient)); })"
  • npm run build -w apps/web
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DB workspace package should expose an importable entrypoint

1 participant