From 5978064ead57eca7cab039e449e0d7870a731dec Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Thu, 4 Dec 2025 08:51:14 +0800 Subject: [PATCH] fix(cli): install Prisma 6 during init since 7 is not tested --- packages/schema/src/cli/actions/init.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/schema/src/cli/actions/init.ts b/packages/schema/src/cli/actions/init.ts index 3345c745d..2d77c93e1 100644 --- a/packages/schema/src/cli/actions/init.ts +++ b/packages/schema/src/cli/actions/init.ts @@ -1,7 +1,6 @@ import colors from 'colors'; import fs from 'fs'; import path from 'path'; -import pkgJson from '../../package.json'; import { PackageManagers, ensurePackage, installPackage } from '../../utils/pkg-utils'; import { getVersion } from '../../utils/version-utils'; import { CliError } from '../cli-error'; @@ -79,13 +78,6 @@ Moving forward please edit this file and run "zenstack generate" to regenerate P } function getLatestSupportedPrismaVersion() { - const versionSpec = pkgJson.peerDependencies.prisma; - let maxVersion: string | undefined; - const hyphen = versionSpec.indexOf('-'); - if (hyphen > 0) { - maxVersion = versionSpec.substring(hyphen + 1).trim(); - } else { - maxVersion = versionSpec; - } - return maxVersion ?? 'latest'; + // Prisma 7 is not tested + return '6'; }