Fix: use node_modules/.bin/ng path for Drone 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:32:29 +01:00
co-authored by Cursor
parent e188a04e11
commit 6c82fdee86
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -1,8 +1,11 @@
#!/usr/bin/env node
/**
* Loads .env and runs ng build.
* Loads .env and runs ng build + server build.
* Use for production build so process.env is populated for environment.prod.ts.
*/
require('dotenv').config();
const { execSync } = require('child_process');
execSync('ng build', { stdio: 'inherit' });
const { join } = require('path');
const ngPath = join(process.cwd(), 'node_modules', '.bin', 'ng');
execSync(`"${ngPath}" build`, { stdio: 'inherit' });
execSync(`"${ngPath}" run goals-tracker:server:production`, { stdio: 'inherit' });