Skip to content

Commit 961603a

Browse files
authored
fix(cli): install Prisma 6 during init since 7 is not tested (#2316)
1 parent ffa0d28 commit 961603a

File tree

1 file changed

+2
-10
lines changed
  • packages/schema/src/cli/actions

1 file changed

+2
-10
lines changed

packages/schema/src/cli/actions/init.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import colors from 'colors';
22
import fs from 'fs';
33
import path from 'path';
4-
import pkgJson from '../../package.json';
54
import { PackageManagers, ensurePackage, installPackage } from '../../utils/pkg-utils';
65
import { getVersion } from '../../utils/version-utils';
76
import { CliError } from '../cli-error';
@@ -79,13 +78,6 @@ Moving forward please edit this file and run "zenstack generate" to regenerate P
7978
}
8079

8180
function getLatestSupportedPrismaVersion() {
82-
const versionSpec = pkgJson.peerDependencies.prisma;
83-
let maxVersion: string | undefined;
84-
const hyphen = versionSpec.indexOf('-');
85-
if (hyphen > 0) {
86-
maxVersion = versionSpec.substring(hyphen + 1).trim();
87-
} else {
88-
maxVersion = versionSpec;
89-
}
90-
return maxVersion ?? 'latest';
81+
// Prisma 7 is not tested
82+
return '6';
9183
}

0 commit comments

Comments
 (0)