Skip to content

Commit ddb6b1d

Browse files
committed
chore: format generated PLS automatically by default
1 parent 618cc9d commit ddb6b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schema/src/plugins/prisma/schema-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class PrismaSchemaGenerator {
141141
}
142142
await writeFile(outFile, this.PRELUDE + prisma.toString());
143143

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

0 commit comments

Comments
 (0)