Skip to content

Commit

Permalink
chore: improve contributor.json update timing
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 8, 2022
1 parent ff3c03b commit 67e1f29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 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')

Expand All @@ -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' })
Expand Down
1 change: 0 additions & 1 deletion scripts/update.ts
Expand Up @@ -11,7 +11,6 @@ async function run() {
updateFunctionREADME(metadata),
updatePackageJSON(metadata),
updateCountBadge(metadata),
updateContributors(),
])

await fs.copy('./CONTRIBUTING.md', './packages/contributing.md')
Expand Down

0 comments on commit 67e1f29

Please sign in to comment.