|
3 | 3 | "description": "uniform interface for accessing binary data from local files, remote HTTP resources, and browser Blob data", |
4 | 4 | "version": "2.0.1", |
5 | 5 | "type": "module", |
6 | | - "types": "./dist/index.d.ts", |
7 | | - "exports": { |
8 | | - "import": { |
9 | | - "import": "./esm/index.js" |
10 | | - }, |
11 | | - "require": { |
12 | | - "require": "./dist/index.js" |
13 | | - } |
14 | | - }, |
| 6 | + "exports": "./dist/index.js", |
| 7 | + "main": "./dist/index.js", |
15 | 8 | "repository": "GMOD/generic-filehandle2", |
16 | 9 | "license": "MIT", |
17 | 10 | "author": { |
|
24 | 17 | }, |
25 | 18 | "files": [ |
26 | 19 | "dist", |
27 | | - "esm", |
28 | 20 | "src" |
29 | 21 | ], |
30 | 22 | "scripts": { |
31 | 23 | "test": "vitest", |
32 | 24 | "coverage": "yarn test --coverage", |
33 | 25 | "lint": "eslint --report-unused-disable-directives --max-warnings 0 src test", |
34 | | - "clean": "rimraf dist esm", |
| 26 | + "clean": "rimraf dist", |
35 | 27 | "prebuild": "yarn clean", |
36 | | - "build:esm": "tsc --outDir esm", |
37 | | - "build:es5": "tsc --module commonjs --outDir dist", |
38 | | - "build": "yarn build:esm && yarn build:es5", |
| 28 | + "build": "tsc --outDir dist", |
39 | 29 | "preversion": "yarn lint && yarn test --run && yarn build", |
40 | 30 | "postversion": "git push --follow-tags" |
41 | 31 | }, |
|
67 | 57 | "access": "public" |
68 | 58 | }, |
69 | 59 | "browser": { |
70 | | - "./dist/localFile.js": false, |
71 | | - "./esm/localFile.js": false |
| 60 | + "./dist/localFile.js": false |
72 | 61 | } |
73 | 62 | } |
0 commit comments