Skip to content

Commit 499736d

Browse files
committed
release 2.2.0
1 parent bb7baa0 commit 499736d

File tree

2 files changed

+1703
-420
lines changed

2 files changed

+1703
-420
lines changed

package.json

+31-10
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"name": "@apphud/react-native-apphud-sdk",
33
"version": "2.2.0",
44
"description": "Apphud SDK for react native",
5-
"main": "lib/commonjs/index",
6-
"module": "lib/module/index",
7-
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index",
9-
"source": "src/index",
5+
"main": "./lib/commonjs/index.js",
6+
"module": "./lib/module/index.js",
7+
"types": "./lib/typescript/commonjs/src/index.d.ts",
8+
"source": "./src/index.tsx",
109
"files": [
1110
"src",
1211
"lib",
@@ -63,7 +62,7 @@
6362
"prettier": "^3.1.0",
6463
"react": "18.2.0",
6564
"react-native": "0.71",
66-
"react-native-builder-bob": "^0.23.1",
65+
"react-native-builder-bob": "^0.37.0",
6766
"release-it": "^17.0.0",
6867
"typescript": "^5.2.2"
6968
},
@@ -134,15 +133,37 @@
134133
"source": "src",
135134
"output": "lib",
136135
"targets": [
137-
"commonjs",
138-
"module",
136+
[
137+
"commonjs",
138+
{
139+
"esm": true
140+
}
141+
],
142+
[
143+
"module",
144+
{
145+
"esm": true
146+
}
147+
],
139148
[
140149
"typescript",
141150
{
142-
"project": "tsconfig.build.json"
151+
"esm": true
143152
}
144153
]
145154
]
146155
},
147-
"packageManager": "[email protected]+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
156+
"packageManager": "[email protected]+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728",
157+
"exports": {
158+
".": {
159+
"import": {
160+
"types": "./lib/typescript/module/src/index.d.ts",
161+
"default": "./lib/module/index.js"
162+
},
163+
"require": {
164+
"types": "./lib/typescript/commonjs/src/index.d.ts",
165+
"default": "./lib/commonjs/index.js"
166+
}
167+
}
168+
}
148169
}

0 commit comments

Comments
 (0)