install-script-dependencies.js
1 'use strict'; 2 3 const childProcess = require('child_process'); 4 5 const CONFIG = require('../config'); 6 7 module.exports = function(ci) { 8 console.log('Installing script dependencies'); 9 childProcess.execFileSync( 10 CONFIG.getNpmBinPath(ci), 11 ['--loglevel=error', ci ? 'ci' : 'install'], 12 { env: process.env, cwd: CONFIG.scriptRootPath } 13 ); 14 };