From de11994d19e84b641984b198c594592147d9c2ec Mon Sep 17 00:00:00 2001 From: just-mitch <68168980+just-mitch@users.noreply.github.com> Date: Tue, 6 Feb 2024 08:07:35 -0500 Subject: [PATCH] chore: format l1-contracts after generating constants (#4448) This makes it so that we don't need to run `forge fmt` manually after bootstrapping `yarn-project` --- l1-contracts/package.json | 1 + yarn-project/circuits.js/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/l1-contracts/package.json b/l1-contracts/package.json index 006ddcd0228..52841e0aa30 100644 --- a/l1-contracts/package.json +++ b/l1-contracts/package.json @@ -7,6 +7,7 @@ "solhint": "https://github.com/LHerskind/solhint#master" }, "scripts": { + "format": "./.foundry/bin/forge fmt", "lint": "solhint --config ./.solhint.json --fix \"src/**/*.sol\"", "slither": "forge clean && forge build --build-info --skip '*/test/**' --force && slither . --checklist --ignore-compile --show-ignored-findings --config-file ./slither.config.json | tee slither_output.md", "slither-has-diff": "./slither_has_diff.sh" diff --git a/yarn-project/circuits.js/package.json b/yarn-project/circuits.js/package.json index 83c040e356d..458fc20b0ff 100644 --- a/yarn-project/circuits.js/package.json +++ b/yarn-project/circuits.js/package.json @@ -26,7 +26,7 @@ "clean": "rm -rf ./dest .tsbuildinfo", "formatting": "run -T prettier --check ./src && run -T eslint ./src", "formatting:fix": "run -T eslint --fix ./src && run -T prettier -w ./src", - "remake-constants": "node --loader ts-node/esm src/scripts/constants.in.ts && prettier -w src/constants.gen.ts", + "remake-constants": "node --loader ts-node/esm src/scripts/constants.in.ts && prettier -w src/constants.gen.ts && cd ../../l1-contracts && ./.foundry/bin/forge fmt", "test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --passWithNoTests" }, "inherits": [