|
7 | 7 | "ethereum"
|
8 | 8 | ],
|
9 | 9 | "license": "MIT",
|
10 |
| - "main": "dist/index.js", |
11 |
| - "typings": "dist/index.d.ts", |
12 |
| - "module": "dist/v3-sdk.esm.js", |
| 10 | + "main": "./dist/cjs/src/index.js", |
| 11 | + "module": "./dist/esm/src/index.js", |
| 12 | + "types": "./dist/types/src/index.d.ts", |
13 | 13 | "files": [
|
14 | 14 | "dist"
|
15 | 15 | ],
|
16 | 16 | "engines": {
|
17 | 17 | "node": ">=10"
|
18 | 18 | },
|
19 | 19 | "scripts": {
|
20 |
| - "build": "tsdx build", |
21 |
| - "lint": "tsdx lint src", |
22 |
| - "release": "semantic-release", |
23 |
| - "start": "tsdx watch", |
24 |
| - "test": "tsdx test" |
| 20 | + "clean": "rm -rf dist", |
| 21 | + "build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types", |
| 22 | + "build:cjs": "tsc -p tsconfig.cjs.json", |
| 23 | + "build:esm": "tsc -p tsconfig.esm.json", |
| 24 | + "build:types": "tsc -p tsconfig.types.json", |
| 25 | + "lint": "eslint src --ext .ts", |
| 26 | + "test": "jest" |
25 | 27 | },
|
| 28 | + "exports": { |
| 29 | + ".": { |
| 30 | + "types": "./dist/types/src/index.d.ts", |
| 31 | + "import": "./dist/esm/src/index.js", |
| 32 | + "require": "./dist/cjs/src/index.js" |
| 33 | + } |
| 34 | + }, |
| 35 | + "sideEffects": false, |
26 | 36 | "dependencies": {
|
27 | 37 | "@ethersproject/abi": "^5.5.0",
|
28 | 38 | "@ethersproject/solidity": "^5.0.9",
|
|
36 | 46 | "devDependencies": {
|
37 | 47 | "@types/jest": "^24.0.25",
|
38 | 48 | "@uniswap/v3-core": "1.0.0",
|
39 |
| - "babel-jest": "25.5.1", |
40 |
| - "tsdx": "^0.14.1" |
41 |
| - }, |
42 |
| - "resolutions": { |
43 |
| - "regenerator-runtime": "^0.14.1" |
44 |
| - }, |
45 |
| - "resolutionsComments": { |
46 |
| - "regenerator-runtime": "Fixes https://github.com/facebook/regenerator/pull/480. It can be removed when `tsdx` updates their dependencies." |
| 49 | + "eslint": "^7.8.0", |
| 50 | + "eslint-config-prettier": "^6.11.0", |
| 51 | + "eslint-plugin-eslint-comments": "^3.2.0", |
| 52 | + "eslint-plugin-functional": "^3.0.2", |
| 53 | + "eslint-plugin-import": "^2.22.0", |
| 54 | + "jest": "25.5.0", |
| 55 | + "prettier": "^2.4.1", |
| 56 | + "typescript": "^4.3.3" |
47 | 57 | },
|
48 | 58 | "prettier": {
|
49 | 59 | "printWidth": 120,
|
|
0 commit comments