Skip to content

Commit 2bb7337

Browse files
author
Eduardo
committed
feat: add prisma generate in prebuild
1 parent fdb09f7 commit 2bb7337

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN npm install
3535
COPY . .
3636

3737
# Build the NestJS application
38-
# RUN npm run prebuild
38+
RUN npm run prebuild
3939
RUN npm run build
4040

4141
# Expose the port that your NestJS app runs on

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"private": true,
77
"license": "UNLICENSED",
88
"scripts": {
9+
"prebuild": "npx prisma generate",
910
"build": "nest build",
1011
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
1112
"start": "nest start --watch",

0 commit comments

Comments
 (0)