From 0ea7dc77de0c684be7cd1999fc3df4f63d9ba5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=85=E2=80=9A=20Miczek?= Date: Fri, 13 Feb 2026 20:36:30 +0100 Subject: [PATCH] fix: use bun run build to resolve ng via package scripts Co-authored-by: Cursor --- package.json | 3 ++- scripts/build-with-env.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 });