Skip to content

Commit

Permalink
fix: add esbuild custom params to build with prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielforster committed Jan 23, 2024
1 parent 1656b8c commit acf2d7d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions places/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions places/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"devDependencies": {
"@types/aws-lambda": "^8.10.131",
"serverless": "^3.38.0",
"serverless-dotenv-plugin": "^6.0.0",
"serverless-esbuild": "^1.50.1",
"serverless-offline": "^13.3.2",
"typescript": "^5.3.3"
Expand Down
5 changes: 5 additions & 0 deletions places/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ functions:

custom:
serverless-offline: ${file(../offlineConfig.yml):services.places}
esbuild:
packagerOptions:
scripts:
- prisma generate

plugins:
- serverless-esbuild
- serverless-offline
- serverless-dotenv-plugin

0 comments on commit acf2d7d

Please sign in to comment.