|
2 | 2 | "name": "@apphud/react-native-apphud-sdk",
|
3 | 3 | "version": "2.2.0",
|
4 | 4 | "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", |
10 | 9 | "files": [
|
11 | 10 | "src",
|
12 | 11 | "lib",
|
|
63 | 62 | "prettier": "^3.1.0",
|
64 | 63 | "react": "18.2.0",
|
65 | 64 | "react-native": "0.71",
|
66 |
| - "react-native-builder-bob": "^0.23.1", |
| 65 | + "react-native-builder-bob": "^0.37.0", |
67 | 66 | "release-it": "^17.0.0",
|
68 | 67 | "typescript": "^5.2.2"
|
69 | 68 | },
|
|
134 | 133 | "source": "src",
|
135 | 134 | "output": "lib",
|
136 | 135 | "targets": [
|
137 |
| - "commonjs", |
138 |
| - "module", |
| 136 | + [ |
| 137 | + "commonjs", |
| 138 | + { |
| 139 | + "esm": true |
| 140 | + } |
| 141 | + ], |
| 142 | + [ |
| 143 | + "module", |
| 144 | + { |
| 145 | + "esm": true |
| 146 | + } |
| 147 | + ], |
139 | 148 | [
|
140 | 149 | "typescript",
|
141 | 150 | {
|
142 |
| - "project": "tsconfig.build.json" |
| 151 | + "esm": true |
143 | 152 | }
|
144 | 153 | ]
|
145 | 154 | ]
|
146 | 155 | },
|
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 | + } |
148 | 169 | }
|
0 commit comments