|
7 | 7 | "ethereum" |
8 | 8 | ], |
9 | 9 | "license": "MIT", |
10 | | - "main": "dist/index.js", |
11 | | - "typings": "dist/index.d.ts", |
12 | | - "module": "dist/sdk-core.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 | + "lint:fix": "eslint src --ext .ts --fix", |
| 27 | + "test": "jest" |
25 | 28 | }, |
26 | 29 | "dependencies": { |
27 | 30 | "@ethersproject/address": "^5.0.2", |
|
37 | 40 | "devDependencies": { |
38 | 41 | "@types/big.js": "^4.0.5", |
39 | 42 | "@types/jest": "^24.0.25", |
40 | | - "tsdx": "^0.14.1" |
| 43 | + "eslint": "^7.8.0", |
| 44 | + "eslint-config-prettier": "^6.11.0", |
| 45 | + "eslint-plugin-eslint-comments": "^3.2.0", |
| 46 | + "eslint-plugin-functional": "^3.0.2", |
| 47 | + "eslint-plugin-import": "^2.22.0", |
| 48 | + "jest": "25.5.0", |
| 49 | + "prettier": "^2.4.1", |
| 50 | + "typescript": "^4.3.3" |
| 51 | + }, |
| 52 | + "exports": { |
| 53 | + ".": { |
| 54 | + "types": "./dist/types/src/index.d.ts", |
| 55 | + "import": "./dist/esm/src/index.js", |
| 56 | + "require": "./dist/cjs/src/index.js" |
| 57 | + } |
41 | 58 | }, |
42 | 59 | "prettier": { |
43 | 60 | "printWidth": 120, |
|
0 commit comments