From f64cc4c1a960db926df89090772a02f9f1587e1d Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Mon, 27 May 2019 09:26:40 -0300 Subject: [PATCH] fix(core.gbapp): Self-replication on Azure --- packages/core.gbapp/services/GBDeployer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core.gbapp/services/GBDeployer.ts b/packages/core.gbapp/services/GBDeployer.ts index 0d113234..f451e2d4 100644 --- a/packages/core.gbapp/services/GBDeployer.ts +++ b/packages/core.gbapp/services/GBDeployer.ts @@ -319,11 +319,12 @@ export class GBDeployer { public runOnce() { const root = 'packages/default.gbui'; + const npm = urlJoin(process.env.PWD, 'node_modules', '.bin', 'npm'); if (!Fs.existsSync(`${root}/build`)) { GBLog.info(`Preparing default.gbui (it may take some additional time for the first time)...`); Fs.writeFileSync(`${root}/.env`, 'SKIP_PREFLIGHT_CHECK=true'); - child_process.execSync('npm install', { cwd: root }); - child_process.execSync('npm run build', { cwd: root }); + child_process.execSync(`${npm} install`, { cwd: root }); + child_process.execSync(`${npm} run build`, { cwd: root }); } }