Fix dependabot issues

This commit is contained in:
Andrew Eisenberg 2021-10-21 15:24:20 -07:00
parent c89d9bd8b0
commit 531c6ba7c8
705 changed files with 53406 additions and 20466 deletions

View file

@ -6,7 +6,7 @@ type Match = null | { index: number, total: number };
*/
const envs = [
// Knapsack / TravisCI
// Knapsack / TravisCI / GitLab
{
index: 'CI_NODE_INDEX',
total: 'CI_NODE_TOTAL',
@ -26,6 +26,11 @@ const envs = [
index: 'BUILDKITE_PARALLEL_JOB',
total: 'BUILDKITE_PARALLEL_JOB_COUNT',
},
// Semaphore
{
index: 'SEMAPHORE_CURRENT_JOB',
total: 'SEMAPHORE_JOB_COUNT',
},
];
let maybeNum = val => {
@ -40,6 +45,9 @@ for (let env of envs) {
let total = maybeNum(process.env[env.total]);
if (index !== null && total !== null) {
if (process.env.GITLAB_CI) {
index = index - 1;
}
match = { index, total };
break;
}