Files
atom/script/lib/install-script-dependencies.js
2016-08-29 13:40:17 +02:00

16 lines
357 B
JavaScript

'use strict'
const childProcess = require('child_process')
const path = require('path')
const CONFIG = require('../config')
module.exports = function () {
console.log('Installing script dependencies')
childProcess.execFileSync(
CONFIG.getNpmBinPath(),
['--loglevel=error', 'install'],
{env: process.env, cwd: CONFIG.scriptRootPath}
)
}