prisma CLI: make @prisma/composer-cli optional — ORM-only projects install ~200 extra packages (~0.9 GB)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker, typescript
- Domain
- build-system, cli, developer-experience
Research direction
Start by inspecting the prisma package dependency declaration and the CLI entry points for deploy, dev, project, git, and service. Compare install behavior for the ORM workflows against the platform commands, then verify that ORM-only installs no longer bring in Composer while those platform commands still work.
Written by the indexing model from the issue text.
Description
Versions: [email protected], @prisma/[email protected], pnpm 12.5.1, macOS arm64.
What happens. prisma has @prisma/composer-cli in dependencies, so every project that uses the CLI only for ORM workflows (contract emit, migration plan, db migrate, db verify) installs Composer and its whole deploy toolchain. In our pnpm monorepo:
- 214 of the app's 727 packages are reachable only through
@prisma/composer-cli; - they take ~0.9 GB of a 2.2 GB store. The largest are
alchemy(216 MB),@distilled.cloud/aws(205 MB),@cloudflare/workerd-*(144 MB),@distilled.cloud/cloudflare(104 MB) andeffect(52 MB); - the build scripts of
workerd/sharphave to be reviewed inallowBuilds, since pnpm fails the install otherwise; - Composer's fresh releases need
minimumReleaseAgeExcludeentries; - it brings
effectrc peer mismatches (see also prisma/orm#30257).
Production images are not affected when built with --prod, but dev machines, CI and Docker build stages pay the cost.
Request. Keep prisma lean for ORM use:
- make
@prisma/composer-clian optional or peer dependency that is installed on first use ofdeploy/dev/project/git/service, or - ship the platform commands as a separate package.
Related: prisma/orm#30242 (CLI dependency weight in tests), prisma/orm#30437 (Composer ↔ engine coupling).
- Dominant language
- TypeScript
- Stars
- 26
- Forks
- 4
- Avg merge
- 12h 11m
- Merged PRs (30d)
- 38
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prisma/prisma-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
prisma/prisma-cli#416 ·
Maintainers usually reply within 1 day
-
service logs --tail accepts negative and fractional numbersMay be free again @somcpp claimed this 68 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#309 · 1 comment ·
Maintainers usually reply within 1 day
-
The update notice tells users to install @prisma/cli and does not recognise a global prisma installOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#306 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
prisma/prisma-cli#305 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
prisma/prisma-cli#302 ·
Maintainers usually reply within 1 day
All issues in prisma/prisma-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zabuton-app/meguri#875 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
area:api area:web wave wave:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day