mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-28 22:56:32 +00:00
upgrade react-native packages to latest (#10454)
This commit is contained in:
parent
ad9d2e2e89
commit
6076a262dc
5 changed files with 2692 additions and 4581 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
const blacklist = require('metro-config/src/defaults/blacklist');
|
||||
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
||||
const escape = require('escape-string-regexp');
|
||||
const pak = require('../package.json');
|
||||
|
||||
|
|
@ -16,9 +16,9 @@ module.exports = {
|
|||
watchFolders: [root],
|
||||
|
||||
// We need to make sure that only one version is loaded for peerDependencies
|
||||
// So we blacklist them at the root, and alias them to the versions in example's node_modules
|
||||
// So we exclusionList them at the root, and alias them to the versions in example's node_modules
|
||||
resolver: {
|
||||
blacklistRE: blacklist(
|
||||
exclusionListRE: exclusionList(
|
||||
modules.map(
|
||||
(m) =>
|
||||
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@
|
|||
"start": "react-native start"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "16.13.1",
|
||||
"react-native": "0.63.4"
|
||||
"react": "^17.0.2",
|
||||
"react-native": "^0.67.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"babel-plugin-module-resolver": "^4.0.0",
|
||||
"metro-react-native-babel-preset": "^0.64.0"
|
||||
"metro-react-native-babel-preset": "^0.67.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,111 +1,91 @@
|
|||
{
|
||||
"react-native": "lib/index",
|
||||
"module": "dist/module/index",
|
||||
"react-native": "lib/index",
|
||||
"module": "dist/module/index",
|
||||
"jest": {
|
||||
"modulePathIgnorePatterns": [
|
||||
"<rootDir>/example/node_modules",
|
||||
"<rootDir>/example/node_modules",
|
||||
"<rootDir>/dist/"
|
||||
],
|
||||
],
|
||||
"preset": "react-native"
|
||||
},
|
||||
},
|
||||
"keywords": [
|
||||
"react-native",
|
||||
"ios",
|
||||
"android",
|
||||
"ONNX",
|
||||
"ONNXRuntime",
|
||||
"react-native",
|
||||
"ios",
|
||||
"android",
|
||||
"ONNX",
|
||||
"ONNXRuntime",
|
||||
"ONNX Runtime"
|
||||
],
|
||||
],
|
||||
"devDependencies": {
|
||||
"@release-it/conventional-changelog": "^3.3.0",
|
||||
"@types/fs-extra": "^9.0.11",
|
||||
"@types/jest": "^27.0.3",
|
||||
"@types/react": "^17.0.37",
|
||||
"@types/react-native": "0.66.8",
|
||||
"jest": "^27.4.3",
|
||||
"pod-install": "^0.1.0",
|
||||
"@types/jest": "^27.4.0",
|
||||
"@types/react": "^17.0.38",
|
||||
"@types/react-native": "^0.66.15",
|
||||
"jest": "^27.4.7",
|
||||
"pod-install": "^0.1.31",
|
||||
"prettier": "^2.0.5",
|
||||
"react": "17.0.2",
|
||||
"react-native": "0.66.3",
|
||||
"react": "^17.0.2",
|
||||
"react-native": "^0.67.2",
|
||||
"react-native-builder-bob": "^0.18.2",
|
||||
"release-it": "^14.2.2",
|
||||
"typescript": "^4.1.3"
|
||||
"typescript": "^4.5.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
"react": "*",
|
||||
"react-native": "*"
|
||||
},
|
||||
"author": "ONNX Runtime",
|
||||
},
|
||||
"author": "ONNX Runtime",
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
"source": "lib/index",
|
||||
"version": "1.11.0",
|
||||
"release-it": {
|
||||
"npm": {
|
||||
"publish": true
|
||||
},
|
||||
"git": {
|
||||
"commitMessage": "chore: release ${version}",
|
||||
"tagName": "v${version}"
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"preset": "angular"
|
||||
}
|
||||
},
|
||||
"github": {
|
||||
"release": true
|
||||
}
|
||||
},
|
||||
"main": "dist/commonjs/index",
|
||||
"homepage": "https://github.com/Microsoft/onnxruntime/js/react_native#readme",
|
||||
},
|
||||
"source": "lib/index",
|
||||
"version": "1.11.0",
|
||||
"main": "dist/commonjs/index",
|
||||
"homepage": "https://github.com/Microsoft/onnxruntime/js/react_native#readme",
|
||||
"files": [
|
||||
"lib",
|
||||
"dist",
|
||||
"android",
|
||||
"ios/*.h",
|
||||
"ios/*.mm",
|
||||
"onnxruntime-react-native.podspec",
|
||||
"!dist/commonjs/*.js.map",
|
||||
"!dist/module/*.js.map",
|
||||
"!android/.gitignore",
|
||||
"!android/.idea",
|
||||
"lib",
|
||||
"dist",
|
||||
"android",
|
||||
"ios/*.h",
|
||||
"ios/*.mm",
|
||||
"onnxruntime-react-native.podspec",
|
||||
"!dist/commonjs/*.js.map",
|
||||
"!dist/module/*.js.map",
|
||||
"!android/.gitignore",
|
||||
"!android/.idea",
|
||||
"!android/build"
|
||||
],
|
||||
"description": "Onnxruntime bridge for react native",
|
||||
"repository": "https://github.com/Microsoft/onnxruntime.git",
|
||||
],
|
||||
"description": "Onnxruntime bridge for react native",
|
||||
"repository": "https://github.com/Microsoft/onnxruntime.git",
|
||||
"react-native-builder-bob": {
|
||||
"source": "lib",
|
||||
"source": "lib",
|
||||
"targets": [
|
||||
"commonjs",
|
||||
"module",
|
||||
"commonjs",
|
||||
"module",
|
||||
[
|
||||
"typescript",
|
||||
"typescript",
|
||||
{
|
||||
"project": "tsconfig.build.json"
|
||||
}
|
||||
]
|
||||
],
|
||||
],
|
||||
"output": "dist"
|
||||
},
|
||||
},
|
||||
"dependencies": {
|
||||
"buffer": "^6.0.3",
|
||||
"buffer": "^6.0.3",
|
||||
"onnxruntime-common": "file:../common"
|
||||
},
|
||||
},
|
||||
"scripts": {
|
||||
"typescript": "tsc --noEmit",
|
||||
"prepare": "bob build",
|
||||
"bootstrap": "yarn example && yarn && yarn pods",
|
||||
"release": "release-it",
|
||||
"test": "jest",
|
||||
"prepack": "tsc --build ./tsconfig.scripts.json && node ./scripts/prepack",
|
||||
"pods": "cd example && pod-install --quiet",
|
||||
"typescript": "tsc --noEmit",
|
||||
"prepare": "bob build",
|
||||
"bootstrap": "yarn example && yarn && yarn pods",
|
||||
"test": "jest",
|
||||
"prepack": "tsc --build ./tsconfig.scripts.json && node ./scripts/prepack",
|
||||
"pods": "cd example && pod-install --quiet",
|
||||
"example": "yarn --cwd example"
|
||||
},
|
||||
"types": "dist/typescript/index.d.ts",
|
||||
"name": "onnxruntime-react-native",
|
||||
"license": "MIT",
|
||||
},
|
||||
"types": "dist/typescript/index.d.ts",
|
||||
"name": "onnxruntime-react-native",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Microsoft/onnxruntime/issues"
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue