|
1 | 1 | { |
2 | 2 | "name": "@metamask/delegation-toolkit", |
3 | 3 | "version": "0.12.0", |
| 4 | + "type": "module", |
4 | 5 | "description": "The Delegation Toolkit built on top of Viem - a library for interacting with DeleGator Smart Accounts", |
5 | 6 | "license": "(MIT-0 OR Apache-2.0)", |
6 | 7 | "keywords": [ |
|
25 | 26 | ".": { |
26 | 27 | "require": { |
27 | 28 | "types": "./dist/index.d.ts", |
28 | | - "default": "./dist/index.js" |
| 29 | + "default": "./dist/index.cjs" |
29 | 30 | }, |
30 | 31 | "import": { |
31 | 32 | "types": "./dist/index.d.mts", |
32 | | - "default": "./dist/index.mjs" |
| 33 | + "default": "./dist/index.js" |
33 | 34 | } |
34 | 35 | }, |
35 | 36 | "./utils": { |
36 | 37 | "require": { |
37 | 38 | "types": "./dist/utils/index.d.ts", |
38 | | - "default": "./dist/utils/index.js" |
| 39 | + "default": "./dist/utils/index.cjs" |
39 | 40 | }, |
40 | 41 | "import": { |
41 | 42 | "types": "./dist/utils/index.d.mts", |
42 | | - "default": "./dist/utils/index.mjs" |
| 43 | + "default": "./dist/utils/index.js" |
43 | 44 | } |
44 | 45 | }, |
45 | 46 | "./contracts": { |
46 | 47 | "require": { |
47 | 48 | "types": "./dist/contracts/index.d.ts", |
48 | | - "default": "./dist/contracts/index.js" |
| 49 | + "default": "./dist/contracts/index.cjs" |
49 | 50 | }, |
50 | 51 | "import": { |
51 | 52 | "types": "./dist/contracts/index.d.mts", |
52 | | - "default": "./dist/contracts/index.mjs" |
| 53 | + "default": "./dist/contracts/index.js" |
53 | 54 | } |
54 | 55 | }, |
55 | 56 | "./actions": { |
56 | 57 | "require": { |
57 | 58 | "types": "./dist/actions/index.d.ts", |
58 | | - "default": "./dist/actions/index.js" |
| 59 | + "default": "./dist/actions/index.cjs" |
59 | 60 | }, |
60 | 61 | "import": { |
61 | 62 | "types": "./dist/actions/index.d.mts", |
62 | | - "default": "./dist/actions/index.mjs" |
| 63 | + "default": "./dist/actions/index.js" |
63 | 64 | } |
64 | 65 | }, |
65 | 66 | "./experimental": { |
66 | 67 | "require": { |
67 | 68 | "types": "./dist/experimental/index.d.ts", |
68 | | - "default": "./dist/experimental/index.js" |
| 69 | + "default": "./dist/experimental/index.cjs" |
69 | 70 | }, |
70 | 71 | "import": { |
71 | 72 | "types": "./dist/experimental/index.d.mts", |
72 | | - "default": "./dist/experimental/index.mjs" |
| 73 | + "default": "./dist/experimental/index.js" |
73 | 74 | } |
74 | 75 | }, |
75 | 76 | "./package.json": "./package.json" |
|
84 | 85 | "changelog:update": "../../scripts/update-changelog.sh @metamask/delegation-toolkit", |
85 | 86 | "changelog:validate": "../../scripts/validate-changelog.sh @metamask/delegation-toolkit", |
86 | 87 | "clean": "rm -rf dist", |
87 | | - "test": "hardhat test --tsconfig hardhat.tsconfig.json", |
88 | | - "test:watch": "npx nodemon -e ts -w ./test -w ./src -x \"yarn test\"", |
| 88 | + "test": "npx vitest run --coverage", |
| 89 | + "test:watch": "npx vitest watch", |
89 | 90 | "format": "prettier --write \"src/**/*.{ts,tsx}\" --ignore-path .prettierignore", |
90 | 91 | "lint": "yarn lint:eslint", |
91 | 92 | "lint:complete": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", |
|
104 | 105 | "allowScripts": { |
105 | 106 | "@lavamoat/preinstall-always-fail": false, |
106 | 107 | "tsup>esbuild": true, |
107 | | - "hardhat>@nomicfoundation/ethereumjs-blockchain>level>classic-level": false, |
108 | | - "hardhat>@nomicfoundation/ethereumjs-tx>ethereum-cryptography>secp256k1": false, |
109 | | - "hardhat>keccak": false, |
110 | 108 | "viem>ws>bufferutil": false, |
111 | 109 | "viem>ws>utf-8-validate": false, |
112 | | - "@nomicfoundation/hardhat-toolbox-viem>solidity-coverage>hardhat>@nomicfoundation/ethereumjs-tx>ethereum-cryptography>secp256k1": false, |
113 | | - "@nomicfoundation/hardhat-toolbox-viem>solidity-coverage>hardhat>keccak": false, |
114 | | - "@nomicfoundation/hardhat-ignition-viem>@nomicfoundation/hardhat-ignition>hardhat>@nomicfoundation/ethereumjs-tx>ethereum-cryptography>secp256k1": false, |
115 | | - "@nomicfoundation/hardhat-ignition-viem>@nomicfoundation/hardhat-ignition>hardhat>keccak": false |
| 110 | + "vitest>vite>esbuild": false, |
| 111 | + "vitest>vite>tsx>esbuild": false |
116 | 112 | } |
117 | 113 | }, |
118 | 114 | "dependencies": { |
|
129 | 125 | "@metamask/eslint-config": "^12.0.0", |
130 | 126 | "@metamask/eslint-config-nodejs": "^12.0.0", |
131 | 127 | "@metamask/eslint-config-typescript": "^12.0.0", |
132 | | - "@nomicfoundation/hardhat-ignition": "^0.15.1", |
133 | | - "@nomicfoundation/hardhat-ignition-viem": "^0.15.0", |
134 | | - "@nomicfoundation/hardhat-network-helpers": "^1.0.9", |
135 | | - "@nomicfoundation/hardhat-toolbox-viem": "^3.0.0", |
136 | | - "@nomicfoundation/hardhat-verify": "^2.0.0", |
137 | | - "@nomicfoundation/hardhat-viem": "^2.0.0", |
138 | | - "@nomicfoundation/ignition-core": "^0.15.1", |
139 | | - "@types/chai": "4", |
140 | | - "@types/chai-as-promised": "^7.1.8", |
141 | | - "@types/mocha": "10.0.2", |
142 | 128 | "@types/node": "^20.10.6", |
143 | 129 | "@types/sinon": "^17.0.3", |
144 | 130 | "@typescript-eslint/eslint-plugin": "^5.42.1", |
145 | 131 | "@typescript-eslint/parser": "^5.42.1", |
146 | | - "chai": "4", |
147 | | - "chai-as-promised": "^7.1.1", |
| 132 | + "@vitest/coverage-v8": "3.2.4", |
148 | 133 | "dotenv": "^16.3.1", |
149 | 134 | "eslint": "^8.56.0", |
150 | | - "hardhat": "^2.20.1", |
151 | | - "hardhat-gas-reporter": "^1.0.8", |
152 | 135 | "import": "^0.0.6", |
153 | 136 | "prettier": "^3.3.3", |
154 | 137 | "sinon": "^18.0.0", |
155 | | - "solidity-coverage": "^0.8.1", |
156 | 138 | "ts-node": "^10.9.2", |
157 | 139 | "tsconfig-paths": "^4.2.0", |
158 | | - "tsup": "^7.2.0", |
| 140 | + "tsup": "^8.5.0", |
159 | 141 | "typescript": "5.0.4", |
160 | | - "viem": "2.21.55" |
| 142 | + "viem": "2.21.55", |
| 143 | + "vitest": "^3.2.4" |
161 | 144 | }, |
162 | 145 | "peerDependencies": { |
163 | 146 | "viem": ">=2.18.2 <3.0.0" |
|
0 commit comments