Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
#!/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.
|
||||
*/
|
||||
require('dotenv').config();
|
||||
const { execSync } = require('child_process');
|
||||
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' });
|
||||
execSync('bunx ng build', { stdio: 'inherit' });
|
||||
|
||||
Reference in New Issue
Block a user