diff --git a/package.json b/package.json index 251e559..cef6e56 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "watch": "ng build --watch --configuration development", "test": "jest", "serve:ssr": "node scripts/serve-ssr.js", - "build:ssr": "bun run build:prod && bunx ng run goals-tracker:server:production", + "server:build": "ng run goals-tracker:server:production", + "build:ssr": "bun run build:prod && bun run server:build", "prerender": "ng run goals-tracker:prerender" }, "private": true, diff --git a/scripts/build-with-env.js b/scripts/build-with-env.js index 81d8ceb..ee09126 100644 --- a/scripts/build-with-env.js +++ b/scripts/build-with-env.js @@ -5,4 +5,4 @@ */ require('dotenv').config(); const { execSync } = require('child_process'); -execSync('bunx ng build', { stdio: 'inherit' }); +execSync('bun run build', { stdio: 'inherit', cwd: process.cwd(), shell: true });