Skip to content

fix(generate): place usage instructions directly after generator output - #28628

Closed
SE7EN2028 wants to merge 1 commit into
prisma:v7from
SE7EN2028:fix/generate-usage-after-generator
Closed

SE7EN2028 wants to merge 1 commit into
prisma:v7from
SE7EN2028:fix/generate-usage-after-generator

Conversation

@SE7EN2028

@SE7EN2028 SE7EN2028 commented Nov 21, 2025 •

Copy link
Copy Markdown

Fixes issue #1737

Problem:
When running prisma generate, the usage instructions (e.g.,
"You can now start using Prisma Client...") always appear at the very end of the CLI output.
This creates confusion when multiple generators are used, because the usage block does not appear next to the generator that actually produced the Prisma Client.

Solution:
Updates the prisma generate CLI so that the usage instructions are inserted immediately after the corresponding:

✔ Generated Prisma Client to ...
line.

This improves clarity by grouping the instructions with the generator that requires them.

Changes Made:
Updated Generate.ts to inject the usage block directly after the Prisma Client generator success message.

Maintains existing behavior for:
--no-hints
non-JS generators
watch mode
No functional changes to generator behavior or schema evaluation.

The output is now more readable and intuitive.
Instructions appear exactly where users expect them — directly after the Prisma Client generation step.

@CLAassistant

CLAassistant commented Nov 21, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@SE7EN2028 SE7EN2028 changed the title fixed(generate): place usage instructions directly after generator output. fix(generate): place usage instructions directly after generator output Nov 22, 2025
@tensordreams
tensordreams changed the base branch from main to v7 July 21, 2026 12:10
@tensordreams
tensordreams changed the base branch from v7 to main July 21, 2026 15:15
@tensordreams
tensordreams changed the base branch from main to v7 July 28, 2026 08:53
@wmadden-electric

Copy link
Copy Markdown
Contributor

Thank you. #29315 does the same thing, adding the usage hint after each generator. This version looks for the success line without its colour codes, so it does not match when colour is on. Closing in favour of #29315.

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.

3 participants