fix: use bunx ng to resolve Angular CLI in CI
continuous-integration/drone/push Build is failing

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Rafał Miczek
2026-02-13 20:33:05 +01:00
co-authored by Cursor
parent 6c82fdee86
commit 78e2caf16f
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
"watch": "ng build --watch --configuration development", "watch": "ng build --watch --configuration development",
"test": "jest", "test": "jest",
"serve:ssr": "node scripts/serve-ssr.js", "serve:ssr": "node scripts/serve-ssr.js",
"build:ssr": "bun run build:prod", "build:ssr": "bun run build:prod && bunx ng run goals-tracker:server:production",
"prerender": "ng run goals-tracker:prerender" "prerender": "ng run goals-tracker:prerender"
}, },
"private": true, "private": true,
+2 -5
View File
@@ -1,11 +1,8 @@
#!/usr/bin/env node #!/usr/bin/env node
/** /**
* Loads .env and runs ng build + server build. * Loads .env and runs ng build.
* Use for production build so process.env is populated for environment.prod.ts. * Use for production build so process.env is populated for environment.prod.ts.
*/ */
require('dotenv').config(); require('dotenv').config();
const { execSync } = require('child_process'); const { execSync } = require('child_process');
const { join } = require('path'); execSync('bunx ng build', { stdio: 'inherit' });
const ngPath = join(process.cwd(), 'node_modules', '.bin', 'ng');
execSync(`"${ngPath}" build`, { stdio: 'inherit' });
execSync(`"${ngPath}" run goals-tracker:server:production`, { stdio: 'inherit' });