File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 7
7
"prepare:check" : " node ./yarn-project-base/scripts/update_package_jsons.mjs --check && workspaces-to-typescript-project-references --check --tsconfigPath tsconfig.json" ,
8
8
"docs" : " typedoc --out docs/dist && cd docs && yarn serve" ,
9
9
"formatting" : " FORCE_COLOR=true yarn workspaces foreach -p -j unlimited -v run formatting" ,
10
- "formatting:fix" : " FORCE_COLOR=true yarn workspaces foreach -p -v run formatting:fix" ,
10
+ "formatting:fix" : " FORCE_COLOR=true yarn workspaces foreach -p -v run formatting:fix && ./run_nargo_fmt.sh " ,
11
11
"lint" : " yarn eslint --cache --ignore-pattern l1-artifacts ." ,
12
12
"format" : " yarn prettier --cache -w ." ,
13
13
"test" : " FORCE_COLOR=true yarn workspaces foreach --exclude @aztec/aztec3-packages --exclude @aztec/end-to-end --exclude private-token -p -j unlimited -v run test" ,
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Find all Nargo.toml files and run 'nargo fmt' in their directories
4
+ find . -name " Nargo.toml" | while read file; do
5
+ # Extract the directory from the file path
6
+ dir=$( dirname " $file " )
7
+
8
+ # Change into the directory
9
+ cd " $dir " || exit
10
+
11
+ # Run 'nargo fmt' in the directory
12
+ nargo fmt
13
+
14
+ # Change back to the original directory
15
+ cd - > /dev/null
16
+ done
You can’t perform that action at this time.
0 commit comments