Skip to content

Commit 00353eb

Browse files
committed
fix: commonjs export only for app.plugin.js
1 parent 27c241f commit 00353eb

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@
44
"description": "Native file viewer for react-native - now with TurboModules support",
55
"source": "./src/index.tsx",
66
"main": "./lib/module/index.js",
7-
"types": "./lib/typescript/src/index.d.ts",
7+
"module": "./lib/module/index.js",
8+
"types": "./lib/typescript/module/src/index.d.ts",
89
"exports": {
910
".": {
10-
"types": "./lib/typescript/src/index.d.ts",
11-
"default": "./lib/module/index.js"
11+
"import": {
12+
"types": "./lib/typescript/module/src/index.d.ts",
13+
"default": "./lib/module/index.js"
14+
}
15+
},
16+
"./app.plugin.js": {
17+
"require": {
18+
"default": "./app.plugin.js"
19+
}
1220
},
1321
"./package.json": "./package.json"
1422
},
@@ -161,6 +169,7 @@
161169
"source": "src",
162170
"output": "lib",
163171
"targets": [
172+
"commonjs",
164173
[
165174
"module",
166175
{

0 commit comments

Comments
 (0)