Skip to content

Commit 51a4cc5

Browse files
committed
Fix post-release script compatibility with prettier
1 parent 48baa63 commit 51a4cc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

post-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ if [ "$(git branch -lr | grep origin/develop -c)" -ge 1 ]; then
2121
# to the TypeScript source.
2222
src_value=$(jq -r ".matrix_src_$i" package.json)
2323
if [ "$src_value" != "null" ]; then
24-
jq ".$i = .matrix_src_$i" package.json > package.json.new && mv package.json.new package.json
24+
jq ".$i = .matrix_src_$i" package.json > package.json.new && mv package.json.new package.json && yarn prettier --write package.json
2525
else
26-
jq "del(.$i)" package.json > package.json.new && mv package.json.new package.json
26+
jq "del(.$i)" package.json > package.json.new && mv package.json.new package.json && yarn prettier --write package.json
2727
fi
2828
fi
2929
done

0 commit comments

Comments
 (0)