|
7 | 7 | "ethereum"
|
8 | 8 | ],
|
9 | 9 | "license": "MIT",
|
10 |
| - "main": "dist/src/index.js", |
11 |
| - "typings": "dist/src/index.d.ts", |
12 |
| - "module": "dist/uniswapx-sdk.esm.js", |
| 10 | + "main": "./dist/cjs/src/index.js", |
| 11 | + "typings": "./dist/types/src/index.d.ts", |
| 12 | + "module": "./dist/esm/src/index.js", |
13 | 13 | "files": [
|
14 | 14 | "dist"
|
15 | 15 | ],
|
16 | 16 | "engines": {
|
17 | 17 | "node": ">=10"
|
18 | 18 | },
|
19 | 19 | "scripts": {
|
20 |
| - "build": "yarn run typechain && tsc -p tsconfig.json", |
| 20 | + "build": "yarn run typechain && yarn build:cjs && yarn build:esm && yarn build:types", |
| 21 | + "build:cjs": "tsc -p tsconfig.cjs.json", |
| 22 | + "build:esm": "tsc -p tsconfig.esm.json", |
| 23 | + "build:types": "tsc -p tsconfig.types.json", |
21 | 24 | "lint": "eslint src --ext .ts",
|
22 | 25 | "lint:fix": "eslint src --ext .ts --fix",
|
23 | 26 | "prettier": "prettier \"src/**/*.ts\" --list-different",
|
24 | 27 | "release": "semantic-release",
|
25 |
| - "test": "run-s build test:unit test:integration", |
| 28 | + "test": "run-s test:unit test:integration", |
26 | 29 | "test:unit": "jest --testPathPattern src --detectOpenHandles --forceExit --testPathIgnorePatterns dist",
|
27 |
| - "test:integration": "yarn build && cd integration && yarn && yarn test", |
| 30 | + "test:integration": "cd integration && yarn && yarn test", |
28 | 31 | "typechain": "typechain --target=ethers-v5 --out-dir src/contracts --glob ./abis/**/*.json"
|
29 | 32 | },
|
30 | 33 | "dependencies": {
|
|
96 | 99 | }
|
97 | 100 | ]
|
98 | 101 | ]
|
99 |
| - } |
| 102 | + }, |
| 103 | + "exports": { |
| 104 | + ".": { |
| 105 | + "types": "./dist/types/src/index.d.ts", |
| 106 | + "import": "./dist/esm/src/index.js", |
| 107 | + "require": "./dist/cjs/src/index.js" |
| 108 | + } |
| 109 | + }, |
| 110 | + "sideEffects": false |
100 | 111 | }
|
0 commit comments