From 9f2c5db82582314a74d2c54233600f3137fda1c5 Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Sun, 29 Jun 2025 12:01:14 +0200 Subject: [PATCH] Install npm dependencies as .NET build target --- src/Vegasco-Web/package.json | 1 - src/Vegasco.Server.AppHost/Program.cs | 2 +- .../Vegasco.Server.AppHost.csproj | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Vegasco-Web/package.json b/src/Vegasco-Web/package.json index 8ab96ff..4e81464 100644 --- a/src/Vegasco-Web/package.json +++ b/src/Vegasco-Web/package.json @@ -3,7 +3,6 @@ "version": "0.0.0", "scripts": { "ng": "ng", - "start:withInstall": "pnpm install && pnpm run start", "start": "run-script-os", "start:win32": "ng serve --port %PORT% --configuration development", "start:default": "ng serve --port $PORT --configuration development", diff --git a/src/Vegasco.Server.AppHost/Program.cs b/src/Vegasco.Server.AppHost/Program.cs index c4debdf..d214b70 100644 --- a/src/Vegasco.Server.AppHost/Program.cs +++ b/src/Vegasco.Server.AppHost/Program.cs @@ -23,7 +23,7 @@ IResourceBuilder api = builder .WaitFor(postgres); builder - .AddNpmApp("Vegasco-Web", "../Vegasco-Web", scriptName: "start:withInstall") + .AddNpmApp("Vegasco-Web", "../Vegasco-Web") .WithReference(api) .WaitFor(api) .WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false) diff --git a/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj b/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj index dc8b747..783a0d3 100644 --- a/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj +++ b/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj @@ -25,4 +25,14 @@ + + + + + + + + + +