Skip to content

Commit

Permalink
chore: Foundry release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Feb 6, 2024
1 parent a8d1bf6 commit c63bea4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ test = "contracts/test"
script = "contracts/script"
libs = ["contracts/lib"]
gas_reports = ["EtherSwap", "ERC20Swap"]

[profile.release]
via-ir = true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"changelog": "git-cliff -o CHANGELOG.md",
"preversion": "npm run lint && npm run compile && npm run test",
"version": "npm run changelog",
"prepublishOnly": "npm run compile"
"prepublishOnly": "FOUNDRY_PROFILE=release npm run compile"
},
"license": "AGPL-3.0",
"repository": {
Expand Down

0 comments on commit c63bea4

Please sign in to comment.