From de2f8bbd03459642267efae520cc3ab435d48d40 Mon Sep 17 00:00:00 2001 From: Anthony Lio Date: Thu, 10 Sep 2026 10:58:37 +0300 Subject: [PATCH] fix(docs): prima guide yarn panel display npx (#50186) ## What kind of change does this PR introduce? bug fix in prisma guide page code example ## What is the current behavior? yarn panel display `npx` command in code example ## What is the new behavior? favor `yarn` command in yarn panel code example | state | preview | | -------|------| | before | image | | after | image | ## Test 1. visit `/docs/guides/database/prisma` ## Summary by CodeRabbit * **Documentation** * Updated Yarn Prisma command examples to use Yarn-specific syntax for project initialization, migrations, database pulls, migration diffs, migration resolution, and client generation. * npm, pnpm, and Bun examples remain unchanged. --- apps/docs/content/guides/database/prisma.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/docs/content/guides/database/prisma.mdx b/apps/docs/content/guides/database/prisma.mdx index f690c7f63ce..17f83390eb5 100644 --- a/apps/docs/content/guides/database/prisma.mdx +++ b/apps/docs/content/guides/database/prisma.mdx @@ -103,9 +103,9 @@ If you plan to solely use Prisma instead of the Supabase Data API (PostgREST), t yarn add prisma tsx @types/pg --save-dev yarn add @prisma/client @prisma/adapter-pg dotenv pg - npx tsc --init + yarn tsc --init - npx prisma init + yarn prisma init ``` @@ -285,8 +285,8 @@ If you plan to solely use Prisma instead of the Supabase Data API (PostgREST), t ```bash - npx prisma migrate dev --name first_prisma_migration - npx prisma generate + yarn prisma migrate dev --name first_prisma_migration + yarn prisma generate ``` @@ -368,7 +368,7 @@ If you plan to solely use Prisma instead of the Supabase Data API (PostgREST), t ```bash - npx prisma db pull + yarn prisma db pull ``` Create a migration file @@ -378,7 +378,7 @@ If you plan to solely use Prisma instead of the Supabase Data API (PostgREST), t Synchronize the migrations ```bash - npx prisma migrate diff \ + yarn prisma migrate diff \ --from-empty \ --to-schema prisma/schema.prisma \ --script > prisma/migrations/0_init_supabase/migration.sql @@ -390,8 +390,8 @@ If you plan to solely use Prisma instead of the Supabase Data API (PostgREST), t ```bash - npx prisma migrate resolve --applied 0_init_supabase - npx prisma generate + yarn prisma migrate resolve --applied 0_init_supabase + yarn prisma generate ```