From 3d5298a615c8c5cd9455f35e38837717dfb4b382 Mon Sep 17 00:00:00 2001 From: Michael Standen Date: Mon, 10 Jul 2023 11:56:53 +1200 Subject: [PATCH] Update package.json --- package.json | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 05f022fd..43d03744 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "private": true, "license": "Apache-2.0", "scripts": { - "postinstall": "yarn build", "build": "yarn compile && yarn adapter", "compile": "hardhat --max-memory 4096 compile", "clean": "rimraf artifacts && rimraf cache", @@ -16,15 +15,19 @@ "release": "yarn publish src", "lint": "yarn lint:ts && yarn lint:sol", "lint:fix": "yarn lint:ts:fix && yarn lint:sol:fix", - "lint:sol": "solhint './contracts/**/*.sol'", - "lint:sol:fix": "solhint './contracts/**/*.sol' --fix", - "lint:ts": "eslint -c .eslintrc.js './**/*.ts'", - "lint:ts:fix": "eslint -c .eslintrc.js --fix './**/*.ts'", + "lint:sol": "solhint \"./contracts/**/*.sol\"", + "lint:sol:fix": "solhint \"./contracts/**/*.sol\" --fix", + "lint:ts": "eslint -c .eslintrc.js \"./**/*.ts\"", + "lint:ts:fix": "eslint -c .eslintrc.js --fix \"./**/*.ts\"", "format": "prettier --write ./**/*.ts", - "adapter": "rimraf gen && typechain --target ethers-v5 --out-dir gen/typechain './artifacts/contracts/**/*[^dbg].json'" + "adapter": "typechain --target ethers-v5 --out-dir gen/typechain \"./artifacts/contracts/**/*[^dbg].json\"" }, - "main": "gen/adapter/index.js", "types": "gen/typechain/index.ts", + "files": [ + "./contracts/**/*.sol", + "!**/*Mock*", + "./gen/typechain" + ], "husky": { "hooks": { "pre-commit": "yarn lint", @@ -37,7 +40,6 @@ "@nomiclabs/hardhat-truffle5": "^2.0.0", "@nomiclabs/hardhat-web3": "^2.0.0", "@tenderly/hardhat-tenderly": "^1.0.11", - "@typechain/ethers-v5": "^7.0.1", "@types/chai-as-promised": "^7.1.0", "@types/chai-string": "^1.4.1", "@types/mocha": "^8.2.1", @@ -56,7 +58,6 @@ "eslint-plugin-import": "^2.22.0", "eslint-plugin-prettier": "^3.3.1", "ethereum-waffle": "^3.4.4", - "ethers": "^5.7.2", "ganache-cli": "6.12.2", "hardhat": "^2.16.1", "hardhat-gas-reporter": "1.0.4", @@ -66,6 +67,7 @@ "scrypt": "github:barrysteyn/node-scrypt#fb60a8d3c158fe115a624b5ffa7480f3a24b03fb", "solhint": "^3.4.1", "solidity-coverage": "0.8.3", + "threads": "^1.7.0", "ts-node": "^10.9.1", "typechain": "^8.1.0", "typescript": "^4.7.4", @@ -81,7 +83,8 @@ "extra": "" }, "dependencies": { - "keccak256": "^1.0.6", - "threads": "^1.7.0" + "@typechain/ethers-v5": "^7.0.1", + "ethers": "^5.7.2", + "keccak256": "^1.0.6" } }