From 46db10fc4f5c800658dc1cf14f410c0c8d963b39 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Sat, 26 Feb 2022 16:34:36 +0100 Subject: [PATCH] chore: upgrade contributors script --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- scripts/contributors-update.ts | 5 ++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index b983a9135..6ee584234 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@babel/preset-typescript": "7.16.7", "@babel/register": "7.16.9", "@babel/runtime": "7.16.7", - "@dianmora/contributors": "1.1.0", + "@dianmora/contributors": "2.0.2", "@changesets/changelog-github": "0.4.2", "@changesets/cli": "2.15.0", "@changesets/get-dependents-graph": "1.2.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 662b14e03..2c88714c9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,7 +31,7 @@ importers: '@changesets/cli': 2.15.0 '@changesets/get-dependents-graph': 1.2.4 '@crowdin/cli': 3.7.7 - '@dianmora/contributors': 1.1.0 + '@dianmora/contributors': 2.0.2 '@trivago/prettier-plugin-sort-imports': 3.2.0 '@types/async': 3.2.12 '@types/autocannon': 4.1.1 @@ -123,7 +123,7 @@ importers: '@changesets/cli': 2.15.0 '@changesets/get-dependents-graph': 1.2.4 '@crowdin/cli': 3.7.7 - '@dianmora/contributors': 1.1.0 + '@dianmora/contributors': 2.0.2 '@trivago/prettier-plugin-sort-imports': 3.2.0_prettier@2.5.1 '@types/async': 3.2.12 '@types/autocannon': 4.1.1 @@ -5836,12 +5836,12 @@ packages: '@cspotcode/source-map-consumer': 0.8.0 dev: true - /@dianmora/contributors/1.1.0: - resolution: {integrity: sha512-1HQrfiNHWUEFMSur1twULb2WKURcDZw95Cl/RT9fRXT4gdReJHXlDKrTAy1KCPWL8cbcZ6B3/7ffy8dxeNUX6Q==} + /@dianmora/contributors/2.0.2: + resolution: {integrity: sha512-eJ+lrmm/AICnQx0t14uJimc7v4ocAhI9V7y8VSM6uZQiiwqll0CJH0O0e94vWCznQWV9wHvzJai2qvhYTZhAUA==} dependencies: '@octokit/auth-app': 3.6.1 '@octokit/rest': 18.12.0 - debug: 4.3.1 + debug: 4.3.3 transitivePeerDependencies: - encoding - supports-color diff --git a/scripts/contributors-update.ts b/scripts/contributors-update.ts index 959a46c39..10f16f50b 100644 --- a/scripts/contributors-update.ts +++ b/scripts/contributors-update.ts @@ -1,9 +1,8 @@ +import contributors from '@dianmora/contributors'; import fs from 'fs/promises'; import path from 'path'; const token = process.env.TOKEN; -// TODO: migrate to ESM and import -const contributors = require('@dianmora/contributors'); const excludebots = [ 'verdacciobot', 'dependabot-preview[bot]', @@ -21,7 +20,7 @@ const excludebots = [ try { // Awesome script made by https://github.com/dianmorales const result = await contributors({ - token: token, + token, organization: 'verdaccio', excludebots, allowFork: false,