Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
618a7358
Unverified
Commit
618a7358
authored
Mar 03, 2021
by
Hadrien Croubois
Committed by
GitHub
Mar 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable optimizations when publishing package (#2557)
parent
103ff8e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
hardhat.config.js
hardhat.config.js
+2
-1
package.json
package.json
+1
-1
No files found.
hardhat.config.js
View file @
618a7358
...
...
@@ -11,6 +11,7 @@ for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
}
const
enableGasReport
=
!!
process
.
env
.
ENABLE_GAS_REPORT
;
const
enableProduction
=
process
.
env
.
COMPILE_MODE
===
'production'
;
/**
* @type import('hardhat/config').HardhatUserConfig
...
...
@@ -20,7 +21,7 @@ module.exports = {
version
:
'0.8.0'
,
settings
:
{
optimizer
:
{
enabled
:
enableGasReport
,
enabled
:
enableGasReport
||
enableProduction
,
runs
:
200
,
},
},
...
...
package.json
View file @
618a7358
...
...
@@ -22,7 +22,7 @@
"lint:js:fix"
:
"eslint --ignore-path .gitignore . --fix"
,
"lint:sol"
:
"echo 'solidity linter currently disabled' # solhint --max-warnings 0
\"
contracts/**/*.sol
\"
"
,
"prepublish"
:
"rimraf build contracts/build artifacts cache"
,
"prepare"
:
"npm run compile"
,
"prepare"
:
"
env COMPILE_MODE=production
npm run compile"
,
"prepack"
:
"scripts/prepack.sh"
,
"release"
:
"scripts/release/release.sh"
,
"version"
:
"scripts/release/version.sh"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment