From 5444e6b9cb804f32fb9b37c54a9948eef4752e65 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 22 May 2025 11:54:29 +0300 Subject: [PATCH] refactor(server): separate build config for serve --- apps/server/package.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/server/package.json b/apps/server/package.json index 90d2bdedc..3597d8797 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -116,7 +116,7 @@ "executor": "@nx/js:node", "defaultConfiguration": "development", "dependsOn": [ - "build" + "build-without-client" ], "options": { "buildTarget": "server:build", @@ -124,7 +124,7 @@ }, "configurations": { "development": { - "buildTarget": "server:build:development" + "buildTarget": "server:build-without-client" }, "production": { "buildTarget": "server:build:production" @@ -176,7 +176,7 @@ } } }, - "build": { + "build-without-client": { "executor": "@nx/esbuild:esbuild", "outputs": [ "{options.outputPath}" @@ -220,6 +220,12 @@ ] } } + }, + "build": { + "dependsOn": [ + "client:build", + "build" + ] } } },