Skip to content

Commit fc87b8d

Browse files
committed
chore: fix CI
1 parent 07bacec commit fc87b8d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

epicshop/setup-custom.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ if (!process.env.SKIP_PRISMA) {
5454
const prismaDir = path.join(app.fullPath, 'prisma')
5555
try {
5656
if (await fsExtra.exists(prismaDir)) {
57-
if (await fsExtra.exists(path.join(prismaDir, 'sql'))) {
58-
await $({ cwd: app.fullPath, all: true })`prisma generate --sql`
59-
} else {
60-
await $({ cwd: app.fullPath, all: true })`prisma generate`
61-
}
57+
await execa(`npm run db:gen`, { cwd: app.fullPath, all: true })
6258
}
6359
} catch (prismaGenerateResult) {
6460
console.log(prismaGenerateResult.all)

0 commit comments

Comments
 (0)