UNPKG

eas-cli

Version:
21 lines (20 loc) 761 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.installDependenciesAsync = void 0; const runCommand_1 = require("./runCommand"); async function installDependenciesAsync({ projectDir, }) { // TODO: add support for other package managers await (0, runCommand_1.runCommandAsync)({ command: 'npm', args: ['install'], cwd: projectDir, shouldShowStderrLine: line => { return (!line.includes('WARN') && !line.includes('deprecated') && !line.includes('no longer maintained') && !line.includes('has been moved') && !(line === 'npm')); }, }); } exports.installDependenciesAsync = installDependenciesAsync;