File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/schema/src/cli/actions Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 11import colors from 'colors' ;
22import fs from 'fs' ;
33import path from 'path' ;
4- import pkgJson from '../../package.json' ;
54import { PackageManagers , ensurePackage , installPackage } from '../../utils/pkg-utils' ;
65import { getVersion } from '../../utils/version-utils' ;
76import { CliError } from '../cli-error' ;
@@ -79,13 +78,6 @@ Moving forward please edit this file and run "zenstack generate" to regenerate P
7978}
8079
8180function 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}
You can’t perform that action at this time.
0 commit comments