File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,14 @@ if (!process.env.SKIP_PLAYGROUND) {
52
52
if ( ! process . env . SKIP_PRISMA ) {
53
53
console . log ( `🏗 generating prisma client in all ${ allApps . length } apps...` )
54
54
for ( const app of allApps ) {
55
+ const prismaDir = path . join ( app . fullPath , 'prisma' )
55
56
try {
56
- if ( await fsExtra . exists ( path . join ( app . fullPath , 'prisma' ) ) ) {
57
- await $ ( { cwd : app . fullPath , all : true } ) `prisma generate --sql`
57
+ if ( await fsExtra . exists ( prismaDir ) ) {
58
+ if ( await fsExtra . exists ( path . join ( prismaDir , 'sql' ) ) ) {
59
+ await $ ( { cwd : app . fullPath , all : true } ) `prisma generate --sql`
60
+ } else {
61
+ await $ ( { cwd : app . fullPath , all : true } ) `prisma generate`
62
+ }
58
63
}
59
64
} catch ( prismaGenerateResult ) {
60
65
console . log ( prismaGenerateResult . all )
You can’t perform that action at this time.
0 commit comments