diff --git a/scripts/generate-authors.ts b/scripts/generate-authors.ts index 648d40d320..0cfda9f552 100644 --- a/scripts/generate-authors.ts +++ b/scripts/generate-authors.ts @@ -1,6 +1,5 @@ import fs from 'fs'; import path from 'path'; -import remove from 'lodash/remove'; import sortBy from 'lodash/sortBy'; import unionBy from 'lodash/unionBy'; import simpleGit from 'simple-git'; @@ -19,8 +18,8 @@ const excludes = [ ]; async function execute() { - let { all } = await git.log(); - all = remove(all, ({ author_email: email }) => { + const logResult = await git.log(); + let all = logResult.all.filter(({ author_email: email }) => { for (let i = 0; i < excludes.length; i++) { const item = excludes[i]; if (email.includes(item)) {