From cea6232a205bef546825b302bfedb9badca68413 Mon Sep 17 00:00:00 2001 From: Kim Tiago Baptista Date: Tue, 3 Sep 2024 16:29:48 -0300 Subject: [PATCH] refactor: rename `migration` scripts to `migrations` --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b4b56f9..19f6826 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,13 @@ "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" },