Skip to content

Commit

Permalink
tweak update-browserslist command
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Nov 17, 2024
1 parent b47fba3 commit 1d5adef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/update-browserslist/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ async function main() {
await execa('git', ['add', pkgJsonPath])
await execa('git', ['commit', '-m', 'chore: update browserslist'], {
stdio: 'inherit',
}).catch(() => process.exit(1))
}).catch(() => {
console.log('• No changes to commit.')
process.exit(1)
})

console.log('• Changes committed successfully.')
}

0 comments on commit 1d5adef

Please sign in to comment.