From 84cee8fdae04661fb87f1cd536a53686729cf3ab Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Thu, 2 Jan 2025 23:16:09 -0300 Subject: [PATCH] refactor: rename `migration` scripts to `migrations` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fe20506..93918ee 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,18 @@ "description": "ImplementaĆ§Ć£o do https://tabnews.com.br para o https://curso.dev", "main": "index.js", "scripts": { - "dev": "npm run services:up && npm run services:wait:database && npm run migration:up && next dev", + "dev": "npm run services:up && npm run services:wait:database && npm run migrations:up && next dev", "services:up": "docker compose -f infra/compose.yaml up -d", "services:stop": "docker compose -f infra/compose.yaml stop", "services:down": "docker compose -f infra/compose.yaml down", "services:wait:database": "node infra/scripts/wait-for-postgres.js", + "migrations:create": "node-pg-migrate -m infra/migrations create", + "migrations:up": "node-pg-migrate -m infra/migrations --envPath .env.development up", "lint:prettier:check": "prettier --check .", "lint:prettier:fix": "prettier --write .", "lint:eslint:check": "next lint --dir .", "test": " npm run services:up && concurrently -n next,jest --hide next -k -s command-jest \"next dev\" \"jest --runInBand --verbose\"", "test:watch": "jest --watchAll --runInBand", - "migration:create": "node-pg-migrate -m infra/migrations create", - "migration:up": "node-pg-migrate -m infra/migrations --envPath .env.development up", "prepare": "husky", "commit": "cz" },