Add `--skip-install` (parity with `prisma orm init --skip-install`): no way to scaffold files without installing dependencies
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 58/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- nodejs, typescript
- 領域
- cli
調査の方向性
Start at the create-prisma CLI flag parsing and follow the install and post-install flow, using prisma orm init --skip-install as the behavioral reference. Verify that scaffolding still writes all files, skipped mode reports nextActions in both output modes, deploy is rejected, and normal installation behavior remains unchanged.
索引モデルが issue の本文から書いたものです。
説明
Summary
create-prisma has no way to generate a project without installing dependencies. prisma orm init has --skip-install; create-prisma rejects it:
$ npm create prisma@latest -- nest-ref --template nest --provider postgres --yes --skip-install
ERROR
Unrecognized flag: --skip-install in command create-prisma
([email protected], npm 11.6.2, Node 24.11.1, macOS.)
Why it matters
- Inspecting a template. I wanted to compare what
--template nestemits against a hand-wired NestJS 12 project. That needs the files, notnode_modules. A full install of the nest template pulls in@prisma/composer,alchemy,tsdownand friends, which takes minutes on a cold cache for something I was going to delete. - Agents and CI. The CLI already advertises itself as agent-friendly (
--yes,--json). Agents typically generate first and install once, after they have editedpackage.json(for example to add@nestjs/cli, or to pin a different@prisma/orm-postgresrc). Today that means "install, edit, install again". - Offline / monorepo scaffolding. In a pnpm or turborepo workspace, the install has to run from the workspace root anyway; the nested install
create-prismaperforms is wasted and can leave a stray lockfile. --jsonimplies deploy. The help text says--json"deploys unless --no-deploy", so the only non-interactive mode does more work by default, not less. A--skip-installflag is the natural counterpart.
Proposal
Add --skip-install (matching the prisma orm init flag name so the two CLIs read the same):
--skip-install Write the project files but do not install dependencies
(also skips the initial `prisma contract emit`, which needs them)
Behaviour:
- Scaffold all files exactly as today, including
package.json. - Skip the package-manager install step and the post-install steps that need
node_modules(prisma contract emit,prisma db init, skills sync). - Print the commands the user needs to run next, and include them in the
--jsonresult asnextActions, the same wayprisma orm initdoes:
{
"ok": true,
"packagesInstalled": { "status": "skipped" },
"contractEmitted": false,
"nextActions": [
{ "kind": "run-command", "command": "npm install" },
{ "kind": "run-command", "command": "npx prisma contract emit" }
]
}
--skip-installwith--deployshould be an error (deploy needs a build).
Alternatives
--package-manager none: less discoverable and does not express intent.- Generating into a temp dir and killing the process during install: what I actually did, which is not great.
- 主要言語
- TypeScript
- スター
- 12
- フォーク
- 0
- 平均マージ
- 43分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
prisma/create-prisma のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
prisma/create-prisma#112 ·
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
prisma/create-prisma#108 ·
prisma/create-prisma の issue をすべて見る
似ている issue
-
dream report: normalizeMutation discards ok/status, consumers can only string-match the summaryオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
thecodacus/understory#61 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Termix-SSH/Plugin-Hosts-Config#14 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
ai-generated priority: p2 size: s type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
JonathanTSilva/jts-website#92 ·
メンテナーはふだん 1 日以内に返信
-
Toast announcer reads a doubled period when a toast's title ends in punctuation対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
vercel-labs/ui#999 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ehmpathy/rhachet-roles-ehmpathy#1443 ·
メンテナーはふだん 1 日以内に返信