File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kleros/kleros-v2-contracts" ,
3
- "version" : " 0.4.0 " ,
3
+ "version" : " 0.4.1 " ,
4
4
"description" : " Smart contracts for Kleros version 2" ,
5
5
"main" : " typechain-types/index.ts" ,
6
6
"repository" : " git@github.com:kleros/kleros-v2.git" ,
53
53
"release:patch" : " scripts/publish.sh patch" ,
54
54
"release:minor" : " scripts/publish.sh minor" ,
55
55
"release:major" : " scripts/publish.sh major" ,
56
- "tenderly-verify" : " hardhat tenderly:verify"
56
+ "tenderly-verify" : " hardhat tenderly:verify" ,
57
+ "build:all" : " yarn rimraf ./dist && yarn build:cjs && yarn build:esm && yarn build:types" ,
58
+ "build:cjs" : " tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs && echo '{\" type\" : \" commonjs\" }' > ./dist/cjs/package.json" ,
59
+ "build:esm" : " tsc --project tsconfig.json --module es2020 --outDir ./dist/esm && echo '{\" type\" : \" module\" }' > ./dist/esm/package.json" ,
60
+ "build:types" : " tsc --project tsconfig.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap"
57
61
},
58
62
"devDependencies" : {
59
63
"@defi-wonderland/natspec-smells" : " ^1.0.3" ,
Original file line number Diff line number Diff line change @@ -30,8 +30,13 @@ yarn export:testnet
30
30
yarn export:mainnet
31
31
32
32
mkdir dist
33
- cp -pr README.md deployments src/ dist/
33
+ yarn tsc --project tsconfig.json --module commonjs --outDir ./dist
34
+ cp -pr README.md src/ dist/
35
+ rm -rf dist/config
36
+ rm -rf dist/deploy
37
+ rm -rf dist/scripts
34
38
rm -rf dist/test
39
+ rm -rf dist/hardhat.config*
35
40
rm -rf dist/deployments/** /solcInputs
36
41
rm -rf dist/deployments/localhost
37
42
rm -rf dist/deployments/hardhat
Original file line number Diff line number Diff line change 5
5
" ./scripts" ,
6
6
" ./test" ,
7
7
" ./typechain-types" ,
8
- " ./deploy"
8
+ " ./deploy" ,
9
+ " ./deployments"
10
+ ],
11
+ "exclude" : [
12
+ " ./scripts/**/console*.ts"
9
13
],
10
14
"files" : [
11
15
" ./hardhat.config.ts"
You can’t perform that action at this time.
0 commit comments