From 601419419e51b42e5acc128098677c625b16b11e Mon Sep 17 00:00:00 2001 From: hinogi Date: Thu, 31 Oct 2024 08:09:34 +0100 Subject: [PATCH] refactor: changed a webpack target to js:node --- apps/cart/project.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/cart/project.json b/apps/cart/project.json index 4ec9a52d..3c596a43 100644 --- a/apps/cart/project.json +++ b/apps/cart/project.json @@ -71,9 +71,11 @@ "defaultConfiguration": "production" }, "serve": { - "executor": "@nx/webpack:dev-server", + "executor": "@nx/js:node", + "dependsOn": ["build"], "options": { - "buildTarget": "cart:build" + "buildTarget": "cart:build", + "runBuildTargetDependencies": false }, "configurations": { "production": { @@ -81,6 +83,11 @@ }, "development": { "buildTarget": "cart:build:development" + }, + "repl": { + "buildTargetOptions": { + "main": "{projectRoot}/src/repl.ts" + } } }, "defaultConfiguration": "development"