From 67e1f2984009f86748999ef25eed7add4d97b021 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 8 Jul 2022 12:47:05 +0800 Subject: [PATCH] chore: improve contributor.json update timing --- scripts/release.ts | 3 +++ scripts/update.ts | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/release.ts b/scripts/release.ts index c7bf25b9adb..dfb827d83a7 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -1,5 +1,6 @@ import { execSync } from 'child_process' import { readJSONSync } from 'fs-extra' +import { updateContributors } from './utils' const { version: oldVersion } = readJSONSync('package.json') @@ -12,6 +13,8 @@ if (oldVersion === version) { process.exit() } +updateContributors() + execSync('npm run build:types', { stdio: 'inherit' }) execSync('npm run update', { stdio: 'inherit' }) execSync('git add .', { stdio: 'inherit' }) diff --git a/scripts/update.ts b/scripts/update.ts index 1143eef596d..e22cfa29a57 100644 --- a/scripts/update.ts +++ b/scripts/update.ts @@ -11,7 +11,6 @@ async function run() { updateFunctionREADME(metadata), updatePackageJSON(metadata), updateCountBadge(metadata), - updateContributors(), ]) await fs.copy('./CONTRIBUTING.md', './packages/contributing.md')