Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -5,10 +5,20 @@ Object.defineProperty(exports, '__esModule', {
});
exports.default = void 0;
function _chalk() {
const data = _interopRequireDefault(require('chalk'));
_chalk = function () {
return data;
};
return data;
}
function _jestChangedFiles() {
const data = require('jest-changed-files');
_jestChangedFiles = function _jestChangedFiles() {
_jestChangedFiles = function () {
return data;
};
@@ -18,17 +28,7 @@ function _jestChangedFiles() {
function _jestMessageUtil() {
const data = require('jest-message-util');
_jestMessageUtil = function _jestMessageUtil() {
return data;
};
return data;
}
function _chalk() {
const data = _interopRequireDefault(require('chalk'));
_chalk = function _chalk() {
_jestMessageUtil = function () {
return data;
};
@@ -47,10 +47,13 @@ function _interopRequireDefault(obj) {
*/
var _default = (globalConfig, configs) => {
if (globalConfig.onlyChanged) {
const allRootsForAllProjects = configs.reduce(
(roots, config) => [...roots, ...(config.roots || [])],
[]
);
const allRootsForAllProjects = configs.reduce((roots, config) => {
if (config.roots) {
roots.push(...config.roots);
}
return roots;
}, []);
return (0, _jestChangedFiles().getChangedFilesForRoots)(
allRootsForAllProjects,
{
@@ -66,9 +69,7 @@ var _default = (globalConfig, configs) => {
.filter(line => !line.includes('Command failed:'))
.join('\n');
console.error(_chalk().default.red(`\n\n${message}`));
process.exit(1); // We do process.exit, so this is dead code
return Promise.reject(e);
process.exit(1);
});
}