Skip to content

Commit 9e1ce42

Browse files
authored
Small tweaks to justfile (#367)
* codegen depends on clean-add-chain * run codegen after removing or promoting chain
1 parent 3c1a8da commit 9e1ce42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ add-chain:
1111
# Promote a standard candidate chain to a standard chain, example: just promote-to-standard 10
1212
promote-to-standard CHAIN:
1313
go run ./add-chain promote-to-standard --chain-id={{CHAIN}}
14+
just codegen
1415

1516
# Generate auto-generated files
16-
codegen:
17+
codegen: clean-add-chain
1718
go run superchain/internal/codegen/main.go
1819
node ./scripts/codegen.js
1920

@@ -70,3 +71,4 @@ remove-chain SUPERCHAIN_TARGET CHAIN:
7071
rm superchain/extra/addresses/{{SUPERCHAIN_TARGET}}/{{CHAIN}}.json
7172
rm superchain/extra/genesis-system-configs/{{SUPERCHAIN_TARGET}}/{{CHAIN}}.json
7273
rm superchain/extra/genesis/{{SUPERCHAIN_TARGET}}/{{CHAIN}}.json.gz
74+
just codegen

0 commit comments

Comments
 (0)