Skip to content

Commit

Permalink
fix: 🐛 use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
yeukfei02 committed Sep 17, 2023
1 parent c7d5ac7 commit cc510bd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn run lint && yarn run format && yarn run prisma:validate && yarn run prisma:format
pnpm run lint && pnpm run format && pnpm run prisma:validate && pnpm run prisma:format
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ WORKDIR /usr/src/app

COPY ./ .

RUN yarn
RUN pnpm

RUN yarn run build
RUN pnpm run build

EXPOSE 3000

CMD [ "yarn", "start:prod" ]
CMD [ "pnpm", "start:prod" ]
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: yarn run start:prod
web: pnpm run start:prod
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
container_name: prisma-studio
build:
context: .
command: yarn run prisma:studio
command: pnpm run prisma:studio
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build && cp ./prisma/schema.prisma ./dist/prisma",
"heroku-postbuild": "yarn run prebuild && tsc -p tsconfig.build.json && cp ./prisma/schema.prisma ./dist/prisma",
"heroku-postbuild": "pnpm run prebuild && tsc -p tsconfig.build.json && cp ./prisma/schema.prisma ./dist/prisma",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
Expand Down

0 comments on commit cc510bd

Please sign in to comment.