fix: use the new docker compose command if it exists (#5852)

pull/5906/head
Nafees Nazik 2022-12-07 00:11:50 +05:30 committed by GitHub
parent 2b67ea9635
commit a6836a1488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -7,12 +7,12 @@
"clean": "rm -rf .turbo && rm -rf node_modules",
"db-deploy": "yarn prisma migrate deploy",
"db-migrate": "yarn prisma migrate dev",
"db-nuke": "docker-compose down --volumes --remove-orphans",
"db-nuke": "docker-compose down --volumes --remove-orphans || docker compose down --volumes --remove-orphans",
"db-reset": "run-s db-nuke db-setup",
"db-seed": "yarn prisma db seed",
"db-setup": "run-s db-up db-deploy db-seed",
"db-studio": "yarn prisma studio",
"db-up": "docker-compose up -d",
"db-up": "docker-compose up -d || docker compose up -d",
"dx": "yarn db-setup",
"generate-schemas": "prisma generate && prisma format",
"post-install": "yarn generate-schemas",