Skip to content

Commit b27c28c

Browse files
committed
fix: ensure directory creation for prisma migrations in build process
1 parent bf1c23d commit b27c28c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"db:studio": "prisma studio",
2020
"postinstall": "prisma generate",
2121
"dev:desktop": "concurrently -n web,electron -c \"cyan,magenta\" \"pnpm dev\" \"cross-env NEXT_DEV_URL=http://localhost:3000 electron electron/main.cjs\"",
22-
"build:desktop": "next build && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public 2>/dev/null || true && cp -r prisma/migrations .next/standalone/prisma/migrations && electron-builder --mac",
22+
"build:desktop": "next build && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public 2>/dev/null || true && mkdir -p .next/standalone/prisma && cp -r prisma/migrations .next/standalone/prisma/migrations && electron-builder --mac",
2323
"dist": "pnpm build:desktop"
2424
},
2525
"dependencies": {

0 commit comments

Comments
 (0)