Skip to content

fix(cli): fix prisma generate hanging on Deno - #27133

Merged
aqrln merged 1 commit into
mainfrom
push-xksuprpwrzzv
May 9, 2025
Merged

aqrln merged 1 commit into
mainfrom
push-xksuprpwrzzv

Conversation

@aqrln

@aqrln aqrln commented May 9, 2025

Copy link
Copy Markdown
Member

When running on Deno in an interactive environment, prisma generate doesn't exit until Enter is pressed. This commit fixes this by skipping the NPS survey logic on Deno. We should ideally fix the root cause of this before the next NPS survey.

When running on Deno in an interactive environment, `prisma generate`
doesn't exit until Enter is pressed. This commit fixes this by skipping
the NPS survey logic on Deno. We should ideally fix the root cause of
this before the next NPS survey.
@aqrln aqrln added this to the 6.8.0 milestone May 9, 2025
@github-actions

github-actions Bot commented May 9, 2025

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/library.js 400.97 KB (0%)
packages/client/runtime/library.d.ts 81 B (0%)
packages/client/runtime/binary.js 1.27 MB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 335.7 KB (0%)
packages/client/runtime/edge-esm.js 334.35 KB (0%)
packages/client/runtime/wasm.js 281.33 KB (0%)
packages/client/runtime/index-browser.js 67.74 KB (0%)
packages/client/runtime/index-browser.d.ts 89 B (0%)
packages/cli/build/index.js 2.97 MB (+0.01% 🔺)
packages/client/prisma-client-0.0.0.tgz 5.93 MB (+0.01% 🔺)
packages/cli/prisma-0.0.0.tgz 6.19 MB (+0.01% 🔺)
packages/bundle-size/da-workers-libsql/output.tgz 948.69 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 1 MB (0%)
packages/bundle-size/da-workers-pg/output.tgz 1.01 MB (0%)
packages/bundle-size/da-workers-pg-worker/output.tgz 1014.82 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 966.53 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 927.04 KB (0%)

@aqrln
aqrln merged commit b7d1639 into main May 9, 2025
@aqrln
aqrln deleted the push-xksuprpwrzzv branch May 9, 2025 12:17
tensordreams added a commit that referenced this pull request Jul 21, 2026
The guard dates to #27133, where merely creating a readline interface on
Deno kept `prisma generate` alive until Enter was pressed. Verified against
Deno 2.9.3: creating and closing an interface, and the full question-with-
timeout path, both exit cleanly and behave exactly as they do on Node, so
the prompts no longer need to be skipped there.
tensordreams added a commit that referenced this pull request Jul 22, 2026
The guard dates to #27133, where merely creating a readline interface on
Deno kept `prisma generate` alive until Enter was pressed. Verified against
Deno 2.9.3: creating and closing an interface, and the full question-with-
timeout path, both exit cleanly and behave exactly as they do on Node, so
the prompts no longer need to be skipped there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants