prisma CLI: make @prisma/composer-cli optional — ORM-only projects install ~200 extra packages (~0.9 GB)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- docker, typescript
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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).
- 主要语言
- TypeScript
- 星标
- 26
- 派生
- 4
- 平均合并
- 12 小时 11 分钟
- 30 天内合并 PR
- 38
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prisma/prisma-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
prisma/prisma-cli#416 ·
维护者通常 1 天内回复
-
service logs --tail accepts negative and fractional numbers可能重新可做 @somcpp 于 68 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
prisma/prisma-cli#309 · 1 条评论 ·
维护者通常 1 天内回复
-
The update notice tells users to install @prisma/cli and does not recognise a global prisma install未关闭
难度 2/5 1-3 小时 新手友好度 84/100
prisma/prisma-cli#306 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
prisma/prisma-cli#305 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
prisma/prisma-cli#302 ·
维护者通常 1 天内回复
查看 prisma/prisma-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
zabuton-app/meguri#875 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
iruzen-dono/workless#117 ·
维护者通常 1 天内回复
-
area:api area:web wave wave:trivial
难度 2/5 1-3 小时 新手友好度 67/100
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
vetro-protocol/vetro-monorepo#1321 ·
维护者通常 1 天内回复