Skip to content

Commit e8d06ab

Browse files
committed
fix default plugins
1 parent 3c74bb1 commit e8d06ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/schema/src/cli/plugin-runner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ export class PluginRunner {
202202
if (existingPrisma) {
203203
corePlugins.push(existingPrisma);
204204
plugins.splice(plugins.indexOf(existingPrisma), 1);
205-
} else if (options.defaultPlugins && plugins.some((p) => p.provider !== CorePlugins.Prisma)) {
206-
// "@core/prisma" is enabled as default or if any other plugin is configured
205+
} else if (options.defaultPlugins) {
207206
corePlugins.push(this.makeCorePlugin(CorePlugins.Prisma, options.schemaPath, {}));
208207
}
209208

0 commit comments

Comments
 (0)