From 534a2315d8fc14caca89e484159523ab37629d63 Mon Sep 17 00:00:00 2001 From: Tharika Shree R <151807542+tharikashree@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:59:18 +0530 Subject: [PATCH] chore: Update pnpx commands to pnpm dlx (#511) --- .github/workflows/release.yml | 2 +- apps/api/package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae3dd78f..b12ed6f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,4 +30,4 @@ jobs: GITHUB_CALLBACK_URL: dummy REDIS_URL: redis://localhost:6379 JWT_SECRET: secret - run: pnpx semantic-release + run: pnpm dlx semantic-release diff --git a/apps/api/package.json b/apps/api/package.json index 750a2ff1..b6ab1bfb 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -10,11 +10,11 @@ "dev": "cross-env NODE_ENV=dev nest start --watch", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "db:generate-types": "pnpm dlx prisma generate --schema=src/prisma/schema.prisma", - "db:generate-migrations": "pnpx dotenv-cli -e ../../.env -- pnpm dlx prisma migrate dev --create-only --skip-seed --schema=src/prisma/schema.prisma", - "db:deploy-migrations": "pnpx dotenv-cli -e ../../.env -- pnpm dlx prisma migrate deploy --schema=src/prisma/schema.prisma", - "db:validate": "pnpx dotenv-cli -e ../../.env -- pnpm dlx prisma validate --schema=src/prisma/schema.prisma", + "db:generate-migrations": "pnpm dlx dotenv-cli -e ../../.env -- pnpm dlx prisma migrate dev --create-only --skip-seed --schema=src/prisma/schema.prisma", + "db:deploy-migrations": "pnpm dlx dotenv-cli -e ../../.env -- pnpm dlx prisma migrate deploy --schema=src/prisma/schema.prisma", + "db:validate": "pnpm dlx dotenv-cli -e ../../.env -- pnpm dlx prisma validate --schema=src/prisma/schema.prisma", "db:format": "pnpm dlx prisma format --schema=src/prisma/schema.prisma", - "db:reset": "pnpx dotenv-cli -e ../../.env -- pnpm dlx prisma migrate reset --force --schema=src/prisma/schema.prisma", + "db:reset": "pnpm dlx dotenv-cli -e ../../.env -- pnpm dlx prisma migrate reset --force --schema=src/prisma/schema.prisma", "sourcemaps": "sentry-cli sourcemaps inject ./dist && sentry-cli sourcemaps upload ./dist || echo 'Failed to upload source maps to Sentry'", "e2e:prepare": "cd ../../ && docker compose down && docker compose -f docker-compose-test.yml up -d && sleep 3 && cd apps/api && pnpm db:generate-types && cross-env NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5432/tests' pnpm run db:deploy-migrations", "e2e": "pnpm run e2e:prepare && cross-env NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5432/tests' jest --runInBand --config=jest.e2e-config.ts --coverage --coverageDirectory=../../coverage-e2e/api --coverageReporters=json && pnpm run e2e:teardown",