1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
| {
| "react-native": "lib/index",
| "module": "dist/module/index",
| "engines": {
| "node": ">=18"
| },
| "jest": {
| "modulePathIgnorePatterns": [
| "<rootDir>/e2e/node_modules",
| "<rootDir>/dist/"
| ],
| "preset": "react-native"
| },
| "keywords": [
| "react-native",
| "ios",
| "android",
| "ONNX",
| "ONNXRuntime",
| "ONNX Runtime"
| ],
| "devDependencies": {
| "@react-native/typescript-config": "0.73.1",
| "@types/react": "^18.2.6",
| "pod-install": "^0.1.36",
| "prettier": "^2.8.8",
| "react": "^18.2.0",
| "react-native": "^0.73.11",
| "react-native-builder-bob": "^0.37.0"
| },
| "overrides": {
| "fast-xml-parser": "^5.7.0"
| },
| "peerDependencies": {
| "react": "*",
| "react-native": "*"
| },
| "author": "ONNX Runtime",
| "publishConfig": {
| "registry": "https://registry.npmjs.org/"
| },
| "source": "lib/index",
| "version": "1.31.0",
| "main": "dist/commonjs/index",
| "homepage": "https://github.com/microsoft/onnxruntime/blob/main/js/react_native/README.md",
| "files": [
| "cpp",
| "lib",
| "dist",
| "android",
| "ios/*.h",
| "ios/*.mm",
| "onnxruntime-react-native.podspec",
| "app.plugin.js",
| "react-native.config.js",
| "unimodule.json",
| "!dist/commonjs/*.js.map",
| "!dist/module/*.js.map",
| "!android/.gitignore",
| "!android/.idea",
| "!android/build",
| "!android/gradlew",
| "!android/gradlew.bat",
| "!android/gradle/wrapper/*.jar",
| "!android/libs",
| "!cpp/test"
| ],
| "description": "ONNX Runtime bridge for react native",
| "repository": "https://github.com/Microsoft/onnxruntime.git",
| "react-native-builder-bob": {
| "source": "lib",
| "targets": [
| "commonjs",
| "module",
| [
| "typescript",
| {
| "project": "tsconfig.build.json",
| "tsc": "../node_modules/.bin/tsc"
| }
| ]
| ],
| "output": "dist"
| },
| "dependencies": {
| "onnxruntime-common": "file:../common"
| },
| "scripts": {
| "typescript": "tsc --noEmit",
| "prepare": "bob build",
| "bootstrap-no-pods": "npm run test:cpp && npm run pack-common && npm run unpack-common && npm run pack-libs && npm run unpack-libs && npm run e2e && npm --prefix e2e run test:unit",
| "bootstrap": "npm run bootstrap-no-pods && npm run pods",
| "test": "jest",
| "test:cpp": "cmake -S cpp/test -B ../../build/react-native-cpp-test && cmake --build ../../build/react-native-cpp-test --config Release && ctest --test-dir ../../build/react-native-cpp-test -C Release --output-on-failure",
| "pack-common": "cd ../common && npm pack && mv -f onnxruntime-common-*.tgz ../react_native/e2e/onnxruntime-common.tgz",
| "unpack-common": "npm --prefix e2e install ./e2e/onnxruntime-common.tgz",
| "pack-libs": "npm pack --ort-js-pack-mode=e2e && mv -f onnxruntime-react-native-*.tgz e2e/onnxruntime-react-native.tgz",
| "unpack-libs": "npm --prefix e2e install ./e2e/onnxruntime-react-native.tgz",
| "prepack": "tsc --build ./tsconfig.scripts.json && node ./scripts/prepack",
| "pods": "cd e2e && npx pod-install --quiet",
| "e2e": "npm --prefix e2e install"
| },
| "types": "dist/typescript/index.d.ts",
| "name": "onnxruntime-react-native",
| "license": "MIT",
| "bugs": {
| "url": "https://github.com/Microsoft/onnxruntime/issues"
| },
| "packageManager": "yarn@1.22.19"
| }
|
|