From 44b8035a03f22c4a7c93f21b9c6c073a4fdab9b1 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Sat, 16 Sep 2023 12:26:29 -0400 Subject: [PATCH] use bun for prisma generate --- templates/Dockerfile.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/Dockerfile.ejs b/templates/Dockerfile.ejs index a849059..0cb2831 100644 --- a/templates/Dockerfile.ejs +++ b/templates/Dockerfile.ejs @@ -77,7 +77,7 @@ RUN <%- buildCache %><%= packagerInstall %> <% if (prisma) { -%> # Generate Prisma Client COPY<% if (options.link) { %> --link<% } %> prisma . -RUN npx prisma generate +RUN <%= packager === "bun" ? 'bunx' : 'npx' %> prisma generate <% } -%> # Copy application code