Skip to content

Commit 795b9ab

Browse files
committed
New
1 parent 23c429b commit 795b9ab

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

package.json

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,8 @@
33
"description": "uniform interface for accessing binary data from local files, remote HTTP resources, and browser Blob data",
44
"version": "2.0.1",
55
"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",
158
"repository": "GMOD/generic-filehandle2",
169
"license": "MIT",
1710
"author": {
@@ -24,18 +17,15 @@
2417
},
2518
"files": [
2619
"dist",
27-
"esm",
2820
"src"
2921
],
3022
"scripts": {
3123
"test": "vitest",
3224
"coverage": "yarn test --coverage",
3325
"lint": "eslint --report-unused-disable-directives --max-warnings 0 src test",
34-
"clean": "rimraf dist esm",
26+
"clean": "rimraf dist",
3527
"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",
3929
"preversion": "yarn lint && yarn test --run && yarn build",
4030
"postversion": "git push --follow-tags"
4131
},
@@ -67,7 +57,6 @@
6757
"access": "public"
6858
},
6959
"browser": {
70-
"./dist/localFile.js": false,
71-
"./esm/localFile.js": false
60+
"./dist/localFile.js": false
7261
}
7362
}

0 commit comments

Comments
 (0)