From 8a42ef616ee49bb09acbef4f2c2a424acab3b1a9 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 29 Jan 2024 01:09:42 +0800 Subject: [PATCH] chore: run db:generate at first --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index aed9c2f..ebbe989 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "start": "cd src/server && cross-env NODE_ENV=production node ./dist/src/server/main.js", "start:docker": "pnpm start:docker:db && pnpm start", "start:docker:db": "cd src/server && pnpm db:migrate:apply", + "postinstall": "cd src/server && pnpm db:generate", "test": "vitest", "build": "pnpm build:tracker && pnpm build:server && pnpm build:client && pnpm build:geo", "build:client": "cd src/client && pnpm build",