Skip to content

Commit cbcbc8b

Browse files
committed
chore: better esm support
1 parent 4c8ca17 commit cbcbc8b

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

package.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@
44
"description": "Native file viewer for react-native - now with TurboModules support",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",
7-
"module": "./lib/module/index.js",
8-
"types": "./lib/typescript/commonjs/src/index.d.ts",
7+
"types": "./lib/typescript/src/index.d.ts",
98
"exports": {
10-
"./app.plugin.js": {
11-
"require": {
12-
"default": "./app.plugin.js"
13-
}
9+
".": {
10+
"types": "./lib/typescript/src/index.d.ts",
11+
"default": "./lib/module/index.js"
1412
},
15-
"./lib/commonjs/expo": {
16-
"require": {
17-
"default": "./lib/commonjs/expo.js"
18-
}
19-
}
13+
"./package.json": "./package.json"
2014
},
2115
"files": [
2216
"src",
@@ -167,10 +161,6 @@
167161
"source": "src",
168162
"output": "lib",
169163
"targets": [
170-
"codegen",
171-
[
172-
"commonjs"
173-
],
174164
[
175165
"module",
176166
{

0 commit comments

Comments
 (0)