Skip to content

Commit e69432b

Browse files
muzamJani Anttonen
authored andcommitted
compile artifacts before packing and generate typechains on postinstall.
1 parent 62a6b7b commit e69432b

File tree

3 files changed

+34
-12963
lines changed

3 files changed

+34
-12963
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "@vanilladefi/trade-contracts",
3-
"version": "1.1.12",
3+
"version": "1.1.14",
44
"description": "Smart contracts for vanilladefi.com",
55
"main": "./typechain/vanilla_v1.1/index.ts",
66
"scripts": {
7-
"postinstall": "npm run compile:sol & npm run generate:typechain-wo-test",
7+
"prepare": "npm run compile:sol",
8+
"postinstall": "npm run compile:sol && npm run generate:typechain-wo-test",
89
"test": "npm run generate:test-types && npx hardhat test",
910
"format:js": "eslint --fix test/ utils/ hardhat/ deploy/",
1011
"format:sol": "prettier --write contracts/",
@@ -19,9 +20,9 @@
1920
"node:test-accounts": "npx hardhat test-accounts",
2021
"coverage:sol": "npx hardhat coverage --testfiles \"test/Trading.test.ts\"",
2122
"generate:typechain-wo-hardhat": "npx typechain --target ethers-v5 --out-dir typechain/vanilla_v1.1 \"./artifacts/contracts/**/+([a-zA-Z0-9_]).json\"",
22-
"generate:univ2-types": "npx typechain --target ethers-v5 --out-dir typechain/uniswap_v2 \"../../../**/node_modules/@uniswap/v2-periphery/build/I*.json\"",
23-
"generate:univ3-core-types": "npx typechain --target ethers-v5 --out-dir typechain/uniswap_v3_core \"../../../**/node_modules/@uniswap/v3-core/artifacts/**/*.json\"",
24-
"generate:univ3-periphery-types": "npx typechain --target ethers-v5 --out-dir typechain/uniswap_v3_periphery \"../../../**/node_modules/@uniswap/v3-periphery/artifacts/**/*.json\"",
23+
"generate:univ2-types": "npx typechain --target ethers-v5 --out-dir typechain/uniswap_v2 \"./**/*/@uniswap/v2-periphery/build/I*.json\"",
24+
"generate:univ3-core-types": "npx typechain --target ethers-v5 --out-dir typechain/uniswap_v3_core \"./**/*/@uniswap/v3-core/artifacts/**/*.json\"",
25+
"generate:univ3-periphery-types": "npx typechain --target ethers-v5 --out-dir typechain/uniswap_v3_periphery \"./**/*/@uniswap/v3-periphery/artifacts/**/*.json\"",
2526
"generate:oz-types": "npx typechain --target ethers-v5 --out-dir typechain/openzeppelin \"./artifacts/@openzeppelin/**/+([a-zA-Z0-9_]).json\"",
2627
"generate:test-types": "npx typechain --target ethers-v5 --out-dir typechain/vanilla_test \"./test/v1-artifacts/**/*.json\"",
2728
"generate:typechain": "npm run generate:typechain-wo-hardhat && npm run generate:univ3-core-types && npm run generate:univ2-types && npm run generate:univ3-periphery-types && npm run generate:test-types && npm run generate:oz-types",
@@ -33,8 +34,7 @@
3334
"url": "https://github.com/vanilladefi/contracts"
3435
},
3536
"files": [
36-
"artifacts/**/*",
37-
"hardhat.*.ts"
37+
"artifacts/**/*"
3838
],
3939
"devDependencies": {
4040
"@ethereum-waffle/chai": "^3.4.0",

0 commit comments

Comments
 (0)