mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
more horrific, horrific build patching
This commit is contained in:
parent
6a358ce898
commit
bd96cfc83f
3
build.ts
3
build.ts
|
|
@ -41,6 +41,9 @@ await $`sed -i 's|import("node_modules/|import("./node_modules/|g' dist/*.js`;
|
||||||
await $`mkdir -p dist/node_modules/@prisma/client`;
|
await $`mkdir -p dist/node_modules/@prisma/client`;
|
||||||
await $`cp -r ${process.cwd()}/node_modules/@prisma/client dist/node_modules/@prisma`;
|
await $`cp -r ${process.cwd()}/node_modules/@prisma/client dist/node_modules/@prisma`;
|
||||||
await $`cp -r ${process.cwd()}/node_modules/.prisma dist/node_modules`;
|
await $`cp -r ${process.cwd()}/node_modules/.prisma dist/node_modules`;
|
||||||
|
await $`mkdir -p dist/node_modules/.bin`;
|
||||||
|
await $`cp -r ${process.cwd()}/node_modules/.bin/prisma dist/node_modules/.bin`;
|
||||||
|
await $`cp -r ${process.cwd()}/node_modules/prisma dist/node_modules/`;
|
||||||
|
|
||||||
// Create pages directory
|
// Create pages directory
|
||||||
// mkdir ./dist/pages
|
// mkdir ./dist/pages
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ case "$1" in
|
||||||
# Set DATABASE_URL env variable to the output of bun run ./dist/prisma.js
|
# Set DATABASE_URL env variable to the output of bun run ./dist/prisma.js
|
||||||
export DATABASE_URL=$(bun run ./prisma.js)
|
export DATABASE_URL=$(bun run ./prisma.js)
|
||||||
# Execute the Prisma binary
|
# Execute the Prisma binary
|
||||||
exec ./node_modules/.bin/prisma "$@"
|
exec bun run ./node_modules/.bin/prisma "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Run custom commands
|
# Run custom commands
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue