| 
11 | 11 |   },  | 
12 | 12 |   "devDependencies": {  | 
13 | 13 |     "@layerzerolabs/solidity-examples": "^1.1.0",  | 
14 |  | -    "@nomiclabs/hardhat-ethers": "^2.2.1",  | 
 | 14 | +    "@nomiclabs/hardhat-ethers": "^2.2.3",  | 
15 | 15 |     "@nomiclabs/hardhat-waffle": "^2.0.6",  | 
16 |  | -    "@typechain/ethers-v5": "^10.0.0",  | 
17 |  | -    "@typechain/hardhat": "^6.0.0",  | 
 | 16 | +    "@typechain/ethers-v5": "^11.1.2",  | 
 | 17 | +    "@typechain/hardhat": "^9.1.0",  | 
18 | 18 |     "chai": "^4.3.6",  | 
19 | 19 |     "ethereum-waffle": "^4.0.10",  | 
20 | 20 |     "ethers": "^5.7.2",  | 
21 |  | -    "hardhat": "^2.19.0",  | 
 | 21 | +    "hardhat": "^2.22.2",  | 
22 | 22 |     "hardhat-gas-reporter": "^1.0.9",  | 
23 | 23 |     "prettier": "^2.8.8",  | 
24 | 24 |     "prettier-plugin-solidity": "^1.1.3",  | 
25 | 25 |     "solhint": "^4.0.0",  | 
26 | 26 |     "solhint-plugin-prettier": "^0.0.5",  | 
27 | 27 |     "solidity-coverage": "^0.8.3",  | 
28 | 28 |     "ts-generator": "^0.1.1",  | 
29 |  | -    "typechain": "^8.3.2",  | 
30 |  | -    "typescript": "5.1.6"  | 
 | 29 | +    "ts-node": "^10.8.0",  | 
 | 30 | +    "typechain": "patch:typechain@npm%3A8.3.2#~/.yarn/patches/typechain-npm-8.3.2-b02e27439e.patch",  | 
 | 31 | +    "typescript": "5.3.3"  | 
31 | 32 |   },  | 
32 | 33 |   "directories": {  | 
33 | 34 |     "test": "test"  | 
34 | 35 |   },  | 
 | 36 | +  "type": "module",  | 
 | 37 | +  "exports": {  | 
 | 38 | +    ".": "./dist/index.js",  | 
 | 39 | +    "./mailbox": "./dist/contracts/Mailbox.js",  | 
 | 40 | +    "./buildArtifact.json": "./buildArtifact.json",  | 
 | 41 | +    "./contracts": "./contracts"  | 
 | 42 | +  },  | 
 | 43 | +  "types": "./dist/index.d.ts",  | 
35 | 44 |   "files": [  | 
36 | 45 |     "/buildArtifact.json",  | 
37 | 46 |     "/dist",  | 
38 |  | -    "/contracts",  | 
39 |  | -    "/interfaces",  | 
40 |  | -    "/docs"  | 
 | 47 | +    "/contracts"  | 
41 | 48 |   ],  | 
 | 49 | +  "engines": {  | 
 | 50 | +    "node": ">=16"  | 
 | 51 | +  },  | 
42 | 52 |   "homepage": "https://www.hyperlane.xyz",  | 
 | 53 | +  "repository": "https://github.com/hyperlane-xyz/hyperlane-monorepo",  | 
43 | 54 |   "keywords": [  | 
44 | 55 |     "Hyperlane",  | 
45 | 56 |     "Solidity"  | 
46 | 57 |   ],  | 
47 | 58 |   "license": "Apache-2.0",  | 
48 |  | -  "main": "dist/index.js",  | 
49 |  | -  "repository": "https://github.com/hyperlane-xyz/hyperlane-monorepo",  | 
50 | 59 |   "scripts": {  | 
51 |  | -    "build": "hardhat compile && ./exportBuildArtifact.sh && tsc",  | 
 | 60 | +    "build": "yarn hardhat-esm compile && ./exportBuildArtifact.sh && tsc",  | 
52 | 61 |     "lint": "solhint contracts/**/*.sol",  | 
53 |  | -    "clean": "hardhat clean && rm -rf ./dist ./cache ./types ./coverage",  | 
 | 62 | +    "clean": "yarn hardhat-esm clean && rm -rf ./dist ./cache ./types ./coverage ./out ./forge-cache",  | 
54 | 63 |     "coverage": "./coverage.sh",  | 
55 | 64 |     "docs": "forge doc",  | 
56 |  | -    "storage": "./storage.sh",  | 
 | 65 | +    "hardhat-esm": "NODE_OPTIONS='--experimental-loader ts-node/esm/transpile-only --no-warnings=ExperimentalWarning' hardhat --config hardhat.config.cts",  | 
57 | 66 |     "prettier": "prettier --write ./contracts ./test",  | 
58 |  | -    "test": "hardhat test && forge test -vvv",  | 
59 |  | -    "test:ci": "hardhat test && forge test --no-match-test testFork -vvv",  | 
 | 67 | +    "test": "yarn hardhat-esm test && yarn test:forge",  | 
 | 68 | +    "test:hardhat": "yarn hardhat-esm test",  | 
 | 69 | +    "test:forge": "forge test -vvv",  | 
 | 70 | +    "test:ci": "yarn test:hardhat && yarn test:forge --no-match-test testFork",  | 
60 | 71 |     "gas": "forge snapshot",  | 
61 | 72 |     "gas-ci": "yarn gas --check --tolerance 2 || (echo 'Manually update gas snapshot' && exit 1)",  | 
62 |  | -    "slither": "slither ."  | 
 | 73 | +    "slither": "slither .",  | 
 | 74 | +    "storage": "./storage.sh"  | 
63 | 75 |   },  | 
64 |  | -  "types": "dist/index.d.ts",  | 
65 | 76 |   "peerDependencies": {  | 
66 | 77 |     "@ethersproject/abi": "*",  | 
67 | 78 |     "@ethersproject/providers": "*",  | 
 | 
0 commit comments