diff --git a/src/Vegasco-Web/package.json b/src/Vegasco-Web/package.json index 5d7764e..9a18012 100644 --- a/src/Vegasco-Web/package.json +++ b/src/Vegasco-Web/package.json @@ -3,6 +3,7 @@ "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 6c3c0c5..7d36ee5 100644 --- a/src/Vegasco.Server.AppHost/Program.cs +++ b/src/Vegasco.Server.AppHost/Program.cs @@ -13,7 +13,7 @@ IResourceBuilder api = builder .WaitFor(postgres); builder - .AddNpmApp("Vegasco-Web", "../Vegasco-Web") + .AddNpmApp("Vegasco-Web", "../Vegasco-Web", scriptName: "start:withInstall") .WithReference(api) .WaitFor(api) .WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false)