Skip to content

Commit 62a6b7b

Browse files
muzamJani Anttonen
authored andcommitted
Changed globs to find abis in parent library and added test/ in pack.
Skip generating test types on postinstall Don't publish typechain defs as they're generated on postinstall
1 parent d53e50b commit 62a6b7b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@vanilladefi/trade-contracts",
3-
"version": "1.1.11",
3+
"version": "1.1.12",
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",
8-
"test": "npx hardhat test",
7+
"postinstall": "npm run compile:sol & npm run generate:typechain-wo-test",
8+
"test": "npm run generate:test-types && npx hardhat test",
99
"format:js": "eslint --fix test/ utils/ hardhat/ deploy/",
1010
"format:sol": "prettier --write contracts/",
1111
"lint:js": "eslint test/ utils/ hardhat/ deploy/",
@@ -19,12 +19,13 @@
1919
"node:test-accounts": "npx hardhat test-accounts",
2020
"coverage:sol": "npx hardhat coverage --testfiles \"test/Trading.test.ts\"",
2121
"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\"",
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\"",
2525
"generate:oz-types": "npx typechain --target ethers-v5 --out-dir typechain/openzeppelin \"./artifacts/@openzeppelin/**/+([a-zA-Z0-9_]).json\"",
2626
"generate:test-types": "npx typechain --target ethers-v5 --out-dir typechain/vanilla_test \"./test/v1-artifacts/**/*.json\"",
27-
"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"
27+
"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",
28+
"generate:typechain-wo-test": "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:oz-types"
2829
},
2930
"author": "Vanilla Team",
3031
"license": "GPL-3.0-or-later",
@@ -33,7 +34,6 @@
3334
},
3435
"files": [
3536
"artifacts/**/*",
36-
"typechain/**/*",
3737
"hardhat.*.ts"
3838
],
3939
"devDependencies": {

0 commit comments

Comments
 (0)