|
7 | 7 | "ethereum"
|
8 | 8 | ],
|
9 | 9 | "license": "MIT",
|
10 |
| - "main": "dist/index.js", |
11 |
| - "typings": "dist/index.d.ts", |
| 10 | + "main": "./dist/cjs/src/index.js", |
| 11 | + "module": "./dist/esm/src/index.js", |
| 12 | + "types": "./dist/types/src/index.d.ts", |
12 | 13 | "files": [
|
13 | 14 | "dist"
|
14 | 15 | ],
|
15 | 16 | "scripts": {
|
16 |
| - "build": "tsdx build", |
17 |
| - "lint": "tsdx lint src", |
18 |
| - "release": "semantic-release", |
19 |
| - "start": "tsdx watch", |
20 |
| - "test": "tsdx test" |
| 17 | + "clean": "rm -rf dist", |
| 18 | + "build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types", |
| 19 | + "build:cjs": "tsc -p tsconfig.cjs.json", |
| 20 | + "build:esm": "tsc -p tsconfig.esm.json", |
| 21 | + "build:types": "tsc -p tsconfig.types.json", |
| 22 | + "lint": "eslint src --ext .ts", |
| 23 | + "lint:fix": "eslint src --ext .ts --fix", |
| 24 | + "test": "jest" |
21 | 25 | },
|
22 | 26 | "dependencies": {
|
23 | 27 | "@ethersproject/abi": "^5.5.0",
|
|
29 | 33 | },
|
30 | 34 | "devDependencies": {
|
31 | 35 | "@types/jest": "^24.0.25",
|
| 36 | + "@typescript-eslint/eslint-plugin": "^5.62", |
| 37 | + "@typescript-eslint/parser": "^5.62", |
| 38 | + "eslint": "^7.8.0", |
| 39 | + "eslint-config-prettier": "^6.11.0", |
| 40 | + "eslint-plugin-eslint-comments": "^3.2.0", |
| 41 | + "eslint-plugin-functional": "^3.0.2", |
| 42 | + "eslint-plugin-import": "^2.22.0", |
| 43 | + "jest": "25.5.0", |
32 | 44 | "prettier": "^2.4.1",
|
33 |
| - "tsdx": "^0.14.1" |
34 |
| - }, |
35 |
| - "prettier": { |
36 |
| - "printWidth": 120, |
37 |
| - "semi": false, |
38 |
| - "singleQuote": true |
| 45 | + "typescript": "^4.3.3" |
39 | 46 | },
|
40 | 47 | "publishConfig": {
|
41 | 48 | "access": "public",
|
42 | 49 | "provenance": true
|
43 | 50 | },
|
| 51 | + "exports": { |
| 52 | + ".": { |
| 53 | + "types": "./dist/types/src/index.d.ts", |
| 54 | + "import": "./dist/esm/src/index.js", |
| 55 | + "require": "./dist/cjs/src/index.js" |
| 56 | + } |
| 57 | + }, |
44 | 58 | "release": {
|
45 | 59 | "extends": "semantic-release-monorepo",
|
46 | 60 | "branches": [
|
|
0 commit comments