From d0ac74ea4bbfcf3d25d30cbd422d9df1c1259a18 Mon Sep 17 00:00:00 2001 From: Danshil Kokil Mungur Date: Sat, 16 Oct 2021 15:15:50 +0400 Subject: [PATCH] fix(scripts): update migration scripts (#2208) [skip ci] --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6c9e03fa1..0b1ca3623 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "lint": "eslint \"./server/**/*.{ts,tsx}\" \"./src/**/*.{ts,tsx}\"", "start": "NODE_ENV=production node dist/index.js", "i18n:extract": "extract-messages -l=en -o src/i18n/locale -d en --flat true --overwriteDefault true \"./src/**/!(*.test).{ts,tsx}\"", - "migration:generate": "ts-node --project server/tsconfig.json ./node_modules/.bin/typeorm migration:generate", - "migration:create": "ts-node --project server/tsconfig.json ./node_modules/.bin/typeorm migration:create", - "migration:run": "ts-node --project server/tsconfig.json ./node_modules/.bin/typeorm migration:run", + "migration:generate": "ts-node --project server/tsconfig.json ./node_modules/typeorm/cli.js migration:generate", + "migration:create": "ts-node --project server/tsconfig.json ./node_modules/typeorm/cli.js migration:create", + "migration:run": "ts-node --project server/tsconfig.json ./node_modules/typeorm/cli.js migration:run", "format": "prettier --write ." }, "license": "MIT",