Skip to content

Commit e99ad2c

Browse files
authored
fix: zenstack generate fails when path contains space (#845)
1 parent 08d317d commit e99ad2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ export default class PrismaSchemaGenerator {
134134
if (generateClient) {
135135
try {
136136
// run 'prisma generate'
137-
await execSync(`npx prisma generate --schema ${outFile}`, 'ignore');
137+
await execSync(`npx prisma generate --schema "${outFile}"`, 'ignore');
138138
} catch {
139139
await this.trackPrismaSchemaError(outFile);
140140
try {
141141
// run 'prisma generate' again with output to the console
142-
await execSync(`npx prisma generate --schema ${outFile}`);
142+
await execSync(`npx prisma generate --schema "${outFile}"`);
143143
} catch {
144144
// noop
145145
}

0 commit comments

Comments
 (0)