Skip to content

Commit

Permalink
chore: format generated PLS automatically by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Apr 14, 2024
1 parent 618cc9d commit ddb6b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schema/src/plugins/prisma/schema-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class PrismaSchemaGenerator {
}
await writeFile(outFile, this.PRELUDE + prisma.toString());

if (options.format === true) {
if (options.format !== false) {
try {
// run 'prisma format'
await execPackage(`prisma format --schema ${outFile}`, { stdio: 'ignore' });
Expand Down

0 comments on commit ddb6b1d

Please sign in to comment.