Skip to content

Commit 2d82b3a

Browse files
committed
chore: Fix changelog generator script for execa prettier
1 parent d640fee commit 2d82b3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/gatsby-changelog-generator/update-and-open-pr.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ async function run() {
3535
const updatedChangelogs = updatedPackages.map(
3636
pkg => `packages/${pkg}/CHANGELOG.md`
3737
)
38-
await execa(`yarn prettier --write "packages/**/CHANGELOG.md"`)
38+
await execa(`npx`, [`prettier`, `--write`, `packages/**/CHANGELOG.md`], {
39+
stdio: `inherit`,
40+
})
3941
await execa(`git`, [`add`, ...updatedChangelogs])
4042
await execa(`git`, [`commit`, `-m`, commitMessage])
4143
try {

0 commit comments

Comments
 (0)