|
2 | 2 | "name": "react-native-orientation-director", |
3 | 3 | "version": "2.2.0", |
4 | 4 | "description": "A Modern React Native library that allows you to access orientation", |
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 | + "source": "./src/index.tsx", |
| 6 | + "main": "./lib/commonjs/index.js", |
| 7 | + "module": "./lib/module/index.js", |
| 8 | + "exports": { |
| 9 | + ".": { |
| 10 | + "import": { |
| 11 | + "types": "./lib/typescript/module/src/index.d.ts", |
| 12 | + "default": "./lib/module/index.js" |
| 13 | + }, |
| 14 | + "require": { |
| 15 | + "types": "./lib/typescript/commonjs/src/index.d.ts", |
| 16 | + "default": "./lib/commonjs/index.js" |
| 17 | + } |
| 18 | + } |
| 19 | + }, |
10 | 20 | "files": [ |
11 | 21 | "src", |
12 | 22 | "lib", |
|
28 | 38 | "scripts": { |
29 | 39 | "example": "yarn workspace react-native-orientation-director-example", |
30 | 40 | "test": "jest", |
31 | | - "typecheck": "tsc --noEmit", |
| 41 | + "typecheck": "tsc", |
32 | 42 | "lint": "eslint \"**/*.{js,ts,tsx}\"", |
33 | 43 | "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib", |
34 | 44 | "prepare": "bob build", |
|
56 | 66 | "@commitlint/config-conventional": "^17.0.2", |
57 | 67 | "@evilmartians/lefthook": "^1.5.0", |
58 | 68 | "@react-native/eslint-config": "^0.73.1", |
59 | | - "@release-it/conventional-changelog": "^5.0.0", |
| 69 | + "@release-it/conventional-changelog": "^9.0.2", |
60 | 70 | "@types/jest": "^29.5.5", |
61 | 71 | "@types/react": "^18.2.44", |
62 | 72 | "commitlint": "^17.0.2", |
|
68 | 78 | "prettier": "^3.0.3", |
69 | 79 | "react": "18.3.1", |
70 | 80 | "react-native": "0.77.0", |
71 | | - "react-native-builder-bob": "^0.23.2", |
72 | | - "release-it": "^15.0.0", |
| 81 | + "react-native-builder-bob": "^0.36.0", |
| 82 | + "release-it": "^17.10.0", |
73 | 83 | "turbo": "^1.10.7", |
74 | 84 | "typescript": "^5.2.2" |
75 | 85 | }, |
|
133 | 143 | "prettier" |
134 | 144 | ], |
135 | 145 | "rules": { |
| 146 | + "react/react-in-jsx-scope": "off", |
136 | 147 | "prettier/prettier": [ |
137 | 148 | "error", |
138 | 149 | { |
|
160 | 171 | "source": "src", |
161 | 172 | "output": "lib", |
162 | 173 | "targets": [ |
163 | | - "commonjs", |
164 | | - "module", |
| 174 | + [ |
| 175 | + "commonjs", |
| 176 | + { |
| 177 | + "esm": true |
| 178 | + } |
| 179 | + ], |
| 180 | + [ |
| 181 | + "module", |
| 182 | + { |
| 183 | + "esm": true |
| 184 | + } |
| 185 | + ], |
165 | 186 | [ |
166 | 187 | "typescript", |
167 | 188 | { |
168 | | - "project": "tsconfig.build.json" |
| 189 | + "project": "tsconfig.build.json", |
| 190 | + "esm": true |
169 | 191 | } |
170 | 192 | ] |
171 | 193 | ] |
172 | 194 | }, |
173 | 195 | "codegenConfig": { |
174 | 196 | "name": "RNOrientationDirectorSpec", |
175 | 197 | "type": "modules", |
176 | | - "jsSrcsDir": "src" |
| 198 | + "jsSrcsDir": "src", |
| 199 | + "android": { |
| 200 | + "javaPackageName": "com.orientationdirector" |
| 201 | + } |
| 202 | + }, |
| 203 | + "create-react-native-library": { |
| 204 | + "type": "turbo-module", |
| 205 | + "languages": "kotlin-objc", |
| 206 | + "version": "0.48.0" |
177 | 207 | } |
178 | 208 | } |
0 commit comments