fix: use bun run build to resolve ng via package scripts
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-1
@@ -9,7 +9,8 @@
|
|||||||
"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 && 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"
|
"prerender": "ng run goals-tracker:prerender"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
*/
|
*/
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
execSync('bunx ng build', { stdio: 'inherit' });
|
execSync('bun run build', { stdio: 'inherit', cwd: process.cwd(), shell: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user