Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/schema/src/cli/actions/generate.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { getPrismaClientGenerator, PluginError } from '@zenstackhq/sdk';
import { isPlugin } from '@zenstackhq/sdk/ast';
import { getPrismaVersion } from '@zenstackhq/sdk/prisma';
import colors from 'colors';
import path from 'path';
import semver from 'semver';
import { CliError } from '../cli-error';
import {
checkNewVersion,
Expand Down Expand Up @@ -48,6 +50,11 @@ export async function generate(projectPath: string, options: Options) {
}
}

const prismaVersion = getPrismaVersion();
if (prismaVersion && semver.gte(prismaVersion, '7.0.0')) {
console.warn(colors.yellow('Prisma 7 support is untested and not planned. Use with caution.'));
}

await runPlugins(options);

// note that we can't run online jobs concurrently with plugins because
Expand Down
Loading