Skip to content

Commit 99c8641

Browse files
committed
refactor: replace find command with fd for formatting JSON files
1 parent ad9ab52 commit 99c8641

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
find . -name *.mod.json -exec npx prettier --write {} \;
111111
find . -name *.pkg.json -exec npx prettier --write {} \;
112112
git diff --exit-code;
113-
113+
# here doesn't run `moon install`, so .mooncakes is not existed
114114
check-typos:
115115
runs-on: ubuntu-latest
116116

justfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
fmt-json:
2-
find . -name *.mod.json -exec npx prettier --write {} \;
3-
find . -name *.pkg.json -exec npx prettier --write {} \;
4-
2+
fd moon.mod.json -x npx prettier --write {}
3+
fd moon.pkg.json -x npx prettier --write {}
4+
5+
# https://github.com/sharkdp/fd

0 commit comments

Comments
 (0)