0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-30 19:25:12 -05:00
denoland-deno/deno2/tools/format.sh
Bert Belder 7a38a2f1a7
Don't run package.json through prettier
Because yarn and npm reset the style every time they update the file.
2018-06-19 15:29:41 +02:00

17 lines
340 B
Bash
Executable file

#!/bin/sh
cd `dirname "$0"`/..
clang-format -i -style Google *.cc *.h include/*.h
gn format BUILD.gn
gn format deno.gni
gn format .gn
yapf -i tools/*.py
prettier --write \
js/deno.d.ts \
js/main.ts \
js/mock_runtime.js \
js/tsconfig.json
# Do not format these.
# js/msg.pb.js
# js/msg.pb.d.ts
rustfmt --write-mode overwrite *.rs