← Back to Changelog

Prisma ORM v6.12.0: ESM-compatible prisma-client in Preview

v6.12.0
July 17, 2025
Prisma PostgresPrisma ORM

Prisma ORM v6.12.0: ESM-compatible prisma-client in Preview

ESM-compatible prisma-client generator now in Preview

We’re excited to share that our new and more flexible prisma-client generator is moving into Preview! As a reminder, here’s what it looks like:

generator client {
  // Required
  provider = "prisma-client" // no `-js` at the end!
  output   = "../src/generated/prisma"

  // Optional
  runtime                = "nodejs"
  moduleFormat           = "esm"
  generatedFileExtension = "ts"
  importFileExtension    = "ts"
}

This new generator eliminates any headaches that you may have experienced due to magical code generation into node_modules and gives you full control over the generated Prisma Client code. With it moving into Preview, we hope that even more of you will try it out and share your feedback with us!

Note: The prisma-client generator will become the default in Prisma v7, replacing the current prisma-client-js generator.

In addition to moving it into Preview, we also created a couple of new ready-to-run examples to help you get started with the new generator and your favorite framework:

Specify locations for views, migrations and typedSql in Prisma Config (Early Access)

As we’re getting closer to the General Availability release of prisma.config.ts, we’re adding more capabilities to it. In previous versions, the Prisma CLI implicitly used to infer the location for migration, SQL view definition and TypedSQL query files based on the location of the Prisma schema. In this release, we're adding three new fields (migrations, views and typedSql) to give you more flexibility and clarity on how the Prisma CLI should locate these files:

// prisma.config.ts
export default defineConfig({
  earlyAccess: true,
  migrations: {
    path: './db/migrations'
  },
  views: {
    path: './db/views'
  },
  typedSql: {
    path:  './db/queries'
  }
  // ...
})

👨‍🚀 More from the Prismasphere

How Co.dev Uses Prisma Postgres to Power AI-Driven App Development for Non-Developers

Co.dev (YC W23) lets non-developers build production-ready full-stack apps in minutes by combining AI-driven code generation with integrated tooling, powered by Prisma Postgres and MCP server integration.

Read customer story

New videos on Prisma’s YouTube channel

Did you know that we’re releasing several new videos with updates, demos, tips and tricks on our YouTube channel every week? Be sure to check it out and never miss anything that happens in the Prisma ecosystem!

Check out Prisma on YouTube