-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
2,465 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
coverage.json | ||
coverage/ | ||
.env | ||
.releaserc.json | ||
|
||
/.coverage_cache | ||
/.coverage_contracts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Run in the `prepublishOnly npm hook`. We publish a specially built version | ||
# of the repo to the @hardhat tag which includes hardcoded gas values in the hardhat | ||
# artifact abis and deposits type definitions alongside the js files in the dist. | ||
# This build is necessary for Perp fixtures to run correctly at set-v2-strategies | ||
set -o errexit | ||
|
||
echo "Running prepublishOnly npm hook" | ||
echo "PUBLISH_HARDHAT = $PUBLISH_HARDHAT" | ||
|
||
if [[ -v PUBLISH_HARDHAT ]]; then | ||
yarn clean && yarn build:npm:hardhat | ||
else | ||
yarn clean && yarn build:npm:latest | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
|
||
# Auto-publishes a specially built release to the @hardhat tag using version schema `x.x.x-hardhat.1` | ||
# See scripts/prepublish_only.sh for details about this build. | ||
# | ||
# The `release_default` branch config here is necessary to trick the semantic-release tool into publishing | ||
# latest and hardhat builds from `master`. These are handled by separate jobs in CI (see circleci/config.yml) | ||
echo '{ | ||
"branches": [ | ||
{ "name": "release_default_do_not_delete" }, | ||
{ "name": "chris/semantic-release-test", "channel": "hardhat", "prerelease": "hardhat"} | ||
] | ||
}' > .releaserc.json | ||
|
||
PUBLISH_HARDHAT=true npx semantic-release --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
|
||
# Auto-publishes `latest` from master | ||
echo '{ | ||
"branches": [ | ||
{ "name": "master" } | ||
] | ||
}' > .releaserc.json | ||
|
||
npx semantic-release --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"strictPropertyInitialization": false, | ||
"outDir": "./dist", | ||
"resolveJsonModule": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"moduleResolution": "node", | ||
"paths": { | ||
"@utils/*": ["utils/*"], | ||
"@typechain/*": ["typechain/*"] | ||
} | ||
}, | ||
"include": [ | ||
"./utils/**/*.ts", | ||
"./deploy/**/*.ts", | ||
"./typechain/**/*.ts", | ||
"./tasks/**/*.ts" | ||
], | ||
"files": [ | ||
"hardhat.config.ts", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.