From 5221e6b19b81b8b94a55576a55f026e418d26be6 Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Tue, 24 Oct 2023 16:43:52 +0800 Subject: [PATCH] fix: build all --- package.json | 4 ++-- packages/server/package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 49fdd861..1d224c0e 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,11 @@ "start": "nest start", "dev": "npm -w @bangbang93/freyja-server run dev", "pm2": "pm2 startOrReload process.json", - "build": "npm -ws run build", + "build": "npm -ws run build --if-present", "test": "npm run lint && npm run build", "lint": "eslint --ext .js,.ts,.vue .", "snyk-protect": "snyk protect", - "migrate": "node dist/script/migrate.js", + "migrate": "node packages/server/dist/script/migrate.js", "update-browserlist-db": "npx update-browserslist-db@latest" }, "dependencies": { diff --git a/packages/server/package.json b/packages/server/package.json index f0abb461..04a87768 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -3,6 +3,7 @@ "version": "0.0.0", "private": true, "scripts": { + "build": "nest build", "dev": "nest start --watch" }, "dependencies": {