/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
script/lib/install-apm.js
19 строк
541 B
steven nguyen
separate getLocalNpmBinPath for install-apm.js
28 фев 2022, 17:44
28 фев 2022, 17:44
ee56b4b
Код
Авторство
О чём код?
'use strict'; const childProcess = require('child_process'); const CONFIG = require('../config'); module.exports = function(ci) { if (ci) { // Tell apm not to dedupe its own dependencies during its // postinstall script. (Deduping during `npm ci` runs is broken.) process.env.NO_APM_DEDUPE = 'true'; } console.log('Installing apm'); childProcess.execFileSync( CONFIG.getLocalNpmBinPath(), ['--global-style', '--loglevel=error', ci ? 'ci' : 'install'], { env: process.env, cwd: CONFIG.apmRootPath } ); };