From 6016681de121fe79a273b1d71d8ee161865a08fc Mon Sep 17 00:00:00 2001 From: Nibor <156368035+infnibor@users.noreply.github.com> Date: Sun, 14 Apr 2024 02:05:37 +0200 Subject: [PATCH] Update package.json and fix "eslint" module error. Fixed bug of incompatible version of "eslint" module, Added a separate script for the prisma database migration itself. Signed-off-by: Nibor <156368035+infnibor@users.noreply.github.com> --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f7d4e1594..6ff421d36 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "scripts": { "start": "npm run build && node dist/index.js", "prisma:generate": "npx prisma generate", + "prisma:migrate": "npx prisma migrate dev --name init", "build": "tsc --project tsconfig.json", "clean": "rm -rf dist", "lint": "eslint . --cache --ext .js,.jsx,.ts,.tsx", @@ -40,7 +41,7 @@ "@types/signale": "^1.4.7", "@typescript-eslint/eslint-plugin": "^7.6.0", "@typescript-eslint/parser": "^7.6.0", - "eslint": "^9.0.0", + "eslint": "^8.56.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-unicorn": "^52.0.0", "prettier": "^3.2.5",