-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved release process, fixed a circular-dep, re-released
- Loading branch information
Showing
11 changed files
with
85 additions
and
200 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.env* | ||
scripts | ||
deploy | ||
tsconfig.json | ||
.env* | ||
hardhat.config.ts | ||
test | ||
hardhat.config.* |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{ | ||
"name": "@kleros/vea-contracts", | ||
"version": "0.3.0", | ||
"version": "0.3.2", | ||
"description": "Smart contracts for Vea", | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://[email protected]/kleros/vea.git" | ||
|
@@ -47,7 +50,7 @@ | |
"release:patch": "yarn version patch && yarn npm publish", | ||
"release:minor": "yarn version minor && yarn npm publish", | ||
"release:major": "yarn version major && yarn npm publish", | ||
"prepublish": "ls -la dist/ >foo && yarn tsc || echo" | ||
"prepublish": "./scripts/prepublish.sh" | ||
}, | ||
"devDependencies": { | ||
"@nomicfoundation/hardhat-chai-matchers": "^1.0.6", | ||
|
@@ -86,12 +89,17 @@ | |
"@openzeppelin/contracts": "^4.8.3" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"deployments", | ||
"typechain-types", | ||
"!src/test/**/*", | ||
"!typechain-types/test/**/*", | ||
"!typechain-types/factories/test/**/*" | ||
"!hardhat.config.*", | ||
"!src/test", | ||
"!typechain-types/test", | ||
"!typechain-types/factories/test", | ||
"!test", | ||
"!deploy", | ||
"!deployments/localhost", | ||
"!deployments/hardhat", | ||
"!deployments/**/solcInputs" | ||
] | ||
} |
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 | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
# Remove the mock contracts from the typechain types | ||
sed -n -i '' '/test/!p' $SCRIPT_DIR/../typechain-types/index.ts | ||
sed -n -i '' '/test/!p' $SCRIPT_DIR/../typechain-types/factories/index.ts | ||
rm -rf \ | ||
$SCRIPT_DIR/../typechain-types/test/ \ | ||
$SCRIPT_DIR/../typechain-types/factories/test/ | ||
|
||
yarn tsc -p $SCRIPT_DIR/../tsconfig.publish.json |
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,21 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2021", | ||
"module": "commonjs", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"outDir": "typechain-types", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"noImplicitAny": false, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": [ | ||
"./typechain-types" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"dist" | ||
] | ||
} |
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
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