mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-15 20:50:42 +00:00
* onnxruntime react native binding * add react native backend * fix lint comments * fix react native backend for ios * remove unnecessary files to check in * move onnxruntime-common to devDependency * create two podspec files for iphoneos and iphonesimulator * revise README.md and add third party notices for react native * rename a package * rename a package and revise README * add a license into package.json * revise README and comments * fix typo * fix lint errors * fix lint errors * add a prepack script. touch index.tsx and App.tsx to resolve CI issue * remove a unsupported tsx format from clang-format * fix a type and add steps tp publish a react native npm package * resolve comments * fix clang format * remove promise wrap. change prepack to typescript
24 lines
682 B
JavaScript
24 lines
682 B
JavaScript
const path = require('path');
|
|
const child_process = require('child_process');
|
|
|
|
const root = path.resolve(__dirname, '..');
|
|
const args = process.argv.slice(2);
|
|
const options = {
|
|
cwd: process.cwd(),
|
|
env: process.env,
|
|
stdio: 'inherit',
|
|
encoding: 'utf-8',
|
|
};
|
|
|
|
let result;
|
|
|
|
if (process.cwd() !== root || args.length) {
|
|
// We're not in the root of the project, or additional arguments were passed
|
|
// In this case, forward the command to `yarn`
|
|
result = child_process.spawnSync('yarn', args, options);
|
|
} else {
|
|
// If `yarn` is run without arguments, perform bootstrap
|
|
result = child_process.spawnSync('yarn', ['bootstrap'], options);
|
|
}
|
|
|
|
process.exitCode = result.status;
|