|
15 | 15 | "tsconfig.json"
|
16 | 16 | ],
|
17 | 17 | "scripts": {
|
18 |
| - "build": "yarn compile && yarn patch-hardhat-typechain && yarn typechain && yarn fix-typechain && yarn transpile-dist", |
| 18 | + "build": "yarn compile && yarn build:typechain", |
| 19 | + "build:npm": "yarn compile:npm && yarn build:typechain", |
| 20 | + "build:typechain": "yarn patch-hardhat-typechain && yarn typechain && yarn fix-typechain && yarn transpile-dist", |
19 | 21 | "chain": "npx hardhat node --no-deploy",
|
20 |
| - "clean": "rm -f coverage.json; rm -rf .coverage_cache; rm -rf .coverage_contracts; rm -rf cache; rm -rf coverage; rm -rf typechain; rm -rf artifacts", |
| 22 | + "clean": "rm -rf coverage.json .coverage_cache .coverage_contracts cache coverage typechain artifacts dist", |
21 | 23 | "clean-dev-deployment": "rm -rf deployments/50-development.json",
|
22 | 24 | "compile": "npx hardhat compile",
|
| 25 | + "compile:npm": "SKIP_ABI_GAS_MODS=true npx hardhat compile", |
23 | 26 | "coverage": "yarn clean && yarn build && yarn cov:command",
|
24 | 27 | "coverage:fork": "yarn clean && yarn build && FORK=true yarn cov:command",
|
25 | 28 | "cov:command": "COVERAGE=true node --max-old-space-size=4096 ./node_modules/.bin/hardhat coverage",
|
|
31 | 34 | "patch-hardhat-typechain": "node scripts/patch-hardhat-typechain.js",
|
32 | 35 | "precommit": "lint-staged",
|
33 | 36 | "prepare": "yarn build",
|
34 |
| - "prepack": "if [[ \"$(basename \"$PWD\")\" == \"index-coop-contracts\" ]]; then echo \"CANNOT PUBLISH FROM THIS REPO\"; exit 1; fi;", |
| 37 | + "prepublishOnly": "yarn clean && yarn build:npm", |
35 | 38 | "rename-extensions": "for f in typechain/*.d.ts; do mv -- \"$f\" \"${f%.d.ts}.ts\"; done",
|
36 | 39 | "test": "npx hardhat test --network localhost",
|
37 | 40 | "test:fast": "TS_NODE_TRANSPILE_ONLY=1 npx hardhat test --network localhost --no-compile",
|
|
53 | 56 | "license": "MIT",
|
54 | 57 | "homepage": "https://github.com/SetProtocol",
|
55 | 58 | "devDependencies": {
|
56 |
| - "@ethersproject/abstract-signer": "^5.0.9", |
57 |
| - "@ethersproject/bignumber": "^5.0.12", |
58 |
| - "@ethersproject/providers": "^5.0.17", |
59 | 59 | "@nomiclabs/hardhat-ethers": "^2.0.1",
|
60 | 60 | "@nomiclabs/hardhat-waffle": "^2.0.1",
|
61 | 61 | "@openzeppelin/contracts": "^3.1.0",
|
|
69 | 69 | "coveralls": "^3.0.1",
|
70 | 70 | "dotenv": "^8.2.0",
|
71 | 71 | "ethereum-waffle": "^3.2.1",
|
72 |
| - "ethers": "^5.0.24", |
73 | 72 | "globby": "^11.0.2",
|
74 | 73 | "hardhat": "^2.0.6",
|
75 | 74 | "hardhat-deploy": "^0.7.0-beta.39",
|
|
87 | 86 | "typescript": "^3.9.3"
|
88 | 87 | },
|
89 | 88 | "dependencies": {
|
| 89 | + "@ethersproject/abstract-signer": "5.0.9", |
| 90 | + "@ethersproject/bignumber": "5.0.12", |
| 91 | + "@ethersproject/providers": "5.0.17", |
90 | 92 | "@uniswap/v2-core": "^1.0.1",
|
91 | 93 | "@uniswap/v2-periphery": "^1.1.0-beta.0",
|
92 | 94 | "ethereumjs-util": "^7.0.5",
|
| 95 | + "ethers": "5.0.24", |
93 | 96 | "fs-extra": "^5.0.0",
|
94 | 97 | "module-alias": "^2.2.2",
|
95 | 98 | "replace-in-file": "^6.1.0",
|
96 | 99 | "typechain": "^4.0.1"
|
97 | 100 | },
|
| 101 | + "peerDependencies": { |
| 102 | + "@nomiclabs/hardhat-ethers": "^2.0.1", |
| 103 | + "ethereum-waffle": "^3.2.1", |
| 104 | + "hardhat": "^2.2.1" |
| 105 | + }, |
98 | 106 | "_moduleAliases": {
|
99 | 107 | "@utils": "utils",
|
100 | 108 | "@typechain": "typechain"
|
|
0 commit comments