|
2 | 2 | "name": "react-native-mediapipe-posedetection", |
3 | 3 | "version": "0.2.0", |
4 | 4 | "description": "PoseDetection using google's mediapipe models using poselandmark", |
5 | | - "main": "./lib/module/index.js", |
6 | | - "types": "./lib/typescript/src/index.d.ts", |
| 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", |
7 | 9 | "exports": { |
8 | 10 | ".": { |
9 | | - "source": "./src/index.tsx", |
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 | + "require": { |
| 16 | + "types": "./lib/typescript/commonjs/src/index.d.ts", |
| 17 | + "default": "./lib/commonjs/index.js" |
| 18 | + } |
| 19 | + }, |
| 20 | + "./app.plugin.js": { |
| 21 | + "require": { |
| 22 | + "default": "./app.plugin.js" |
| 23 | + } |
12 | 24 | }, |
13 | | - "./package.json": "./package.json" |
| 25 | + "./plugin": { |
| 26 | + "import": { |
| 27 | + "types": "./lib/typescript/module/src/plugin/withMediapipePosedetection.d.ts", |
| 28 | + "default": "./lib/module/plugin/withMediapipePosedetection.js" |
| 29 | + }, |
| 30 | + "require": { |
| 31 | + "types": "./lib/typescript/commonjs/src/plugin/withMediapipePosedetection.d.ts", |
| 32 | + "default": "./lib/commonjs/plugin/withMediapipePosedetection.js" |
| 33 | + } |
| 34 | + } |
14 | 35 | }, |
15 | 36 | "files": [ |
16 | 37 | "src", |
|
19 | 40 | "ios", |
20 | 41 | "cpp", |
21 | 42 | "*.podspec", |
| 43 | + "app.plugin.js", |
22 | 44 | "react-native.config.js", |
23 | 45 | "!ios/build", |
24 | 46 | "!android/build", |
|
55 | 77 | "url": "https://github.com/EndLess728/react-native-mediapipe-posedetection/issues" |
56 | 78 | }, |
57 | 79 | "homepage": "https://github.com/EndLess728/react-native-mediapipe-posedetection#readme", |
| 80 | + "dependencies": { |
| 81 | + "fs-extra": "^11.2.0" |
| 82 | + }, |
58 | 83 | "publishConfig": { |
59 | 84 | "registry": "https://registry.npmjs.org/" |
60 | 85 | }, |
|
63 | 88 | "@eslint/compat": "^1.3.2", |
64 | 89 | "@eslint/eslintrc": "^3.3.1", |
65 | 90 | "@eslint/js": "^9.35.0", |
| 91 | + "@expo/config-plugins": "^9.0.0", |
66 | 92 | "@react-native-community/cli": "20.0.1", |
67 | 93 | "@react-native/babel-preset": "0.81.1", |
68 | 94 | "@react-native/eslint-config": "^0.81.1", |
69 | 95 | "@release-it/conventional-changelog": "^10.0.1", |
| 96 | + "@types/fs-extra": "^11.0.4", |
70 | 97 | "@types/jest": "^29.5.14", |
71 | 98 | "@types/react": "^19.1.0", |
72 | 99 | "commitlint": "^19.8.1", |
|
87 | 114 | "typescript": "^5.9.2" |
88 | 115 | }, |
89 | 116 | "peerDependencies": { |
90 | | - "react": "*", |
| 117 | + "@expo/config-plugins": ">=7", |
| 118 | + "@types/react": ">=16.6.1", |
| 119 | + "react": ">=16.6.1", |
91 | 120 | "react-native": ">=0.74.0", |
92 | 121 | "react-native-vision-camera": "*", |
93 | 122 | "react-native-worklets-core": "*" |
94 | 123 | }, |
95 | 124 | "peerDependenciesMeta": { |
96 | | - "react-native": {} |
| 125 | + "@expo/config-plugins": { |
| 126 | + "optional": true |
| 127 | + }, |
| 128 | + "@types/react": { |
| 129 | + "optional": true |
| 130 | + } |
97 | 131 | }, |
98 | 132 | "workspaces": [ |
99 | 133 | "example" |
|
103 | 137 | "source": "src", |
104 | 138 | "output": "lib", |
105 | 139 | "targets": [ |
| 140 | + [ |
| 141 | + "commonjs", |
| 142 | + { |
| 143 | + "esm": true |
| 144 | + } |
| 145 | + ], |
106 | 146 | [ |
107 | 147 | "module", |
108 | 148 | { |
|
0 commit comments