|
18 | 18 | } |
19 | 19 | ], |
20 | 20 | "main": "main.js", |
21 | | - "module": "module.js", |
| 21 | + "module": "main.js", |
22 | 22 | "browser": "browser.js", |
23 | | - "types": "types.d.ts", |
| 23 | + "types": "index.ts", |
24 | 24 | "files": [ |
25 | 25 | "index.ts", |
26 | 26 | "main.js", |
27 | | - "browser.js", |
28 | | - "types/*.d.ts" |
| 27 | + "module.js", |
| 28 | + "browser.js" |
29 | 29 | ], |
30 | 30 | "sideEffects": false, |
31 | 31 | "scripts": { |
32 | 32 | "prepublishOnly": "npm run build", |
33 | 33 | "test": "BABEL_ENV=test jest --coverage", |
34 | | - "build": "npm run build:browser && npm run build:main", |
| 34 | + "build": "npm run build:browser && npm run build:main && npm run build:module", |
35 | 35 | "build:main": "babel --env-name main --out-file './main.js' './index.ts'", |
36 | 36 | "build:browser": "babel --env-name browser --out-file './browser.js' './index.ts'", |
37 | | - "lint": "eslint './index.ts'", |
| 37 | + "build:module": "babel --env-name module --out-file './module.js' './index.ts'", "lint": "eslint './index.ts'", |
38 | 38 | "typecheck": "tsc --noEmit", |
39 | 39 | "ci": "npm run typecheck && npm run lint && npm run test" |
40 | 40 | }, |
|
46 | 46 | "@babel/preset-typescript": "^7.12.7", |
47 | 47 | "@types/jest": "^26.0.15", |
48 | 48 | "@types/node": "^14.14.10", |
| 49 | + "@typescript-eslint/parser": "^4.8.2", |
49 | 50 | "babel-jest": "^26.6.3", |
50 | 51 | "babel-plugin-annotate-console-log": "^1.0.0", |
51 | 52 | "babel-preset-minify": "^0.5.1", |
52 | 53 | "core-js": "^3.8.0", |
53 | 54 | "eslint": "^7.14.0", |
54 | | - "eslint-import-resolver-babel-module": "^5.2.0", |
55 | 55 | "eslint-plugin-babel": "^5.3.1", |
56 | 56 | "eslint-plugin-jest": "^24.1.3", |
57 | 57 | "eslint-plugin-promise": "^4.2.1", |
|
0 commit comments