Skip to content

Commit

Permalink
chore: remove prisma in build and add in pipeline direclty
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarogfn committed Apr 29, 2024
1 parent 9dbbc4d commit 882278a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ runs:
shell: bash
run: pnpm install --frozen-lockfile -r

- name: Prisma
shell: bash
uses: pnpm prisma generate

- name: Build dependencies
shell: bash
run: pnpm -r build
run: pnpm build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "cross-env MODE=PROD node build/index.js",
"prestart": "pnpm run build",
"build": "tsc -p tsconfig.build.json",
"prebuild": "prisma generate && ts-patch install -s",
"prebuild": "ts-patch install -s",
"lint": "eslint . --max-warnings=0 --no-warn-ignored",
"format": "prettier . --check --ignore-unknown",
"prepare": "husky",
Expand All @@ -22,7 +22,7 @@
"test": "vitest",
"test:coverage": "vitest --coverage --watch",
"test:ui": "vitest --coverage --ui --watch",
"migrate:production": "dotenv -e .env.dev -- npx prisma migrate deploy",
"migrate:production": "npx prisma migrate deploy",
"migrate": "dotenv -e .env.dev -- npx prisma migrate dev",
"docs:serve": "redocly preview-docs ./openapi/main.yaml",
"docs:build": "redocly build-docs ./openapi/main.yaml --output build-docs/index.html",
Expand Down

0 comments on commit 882278a

Please sign in to comment.