- 源码 316 文件收编为 rusto-rs/ 文件夹,随本仓库管理 - 移除内部 .git(补丁已存档 docs/rusto-rs-metal-patch-20260912.patch,上游可随时 re-clone) - target/ 与 docs/.yarn 缓存不入库;本地改动:ROCR_* 环境变量调优 + Metal 链接修复 + 预处理测试脚本
117 lines
2.6 KiB
JSON
117 lines
2.6 KiB
JSON
{
|
|
"name": "react-native-rusto",
|
|
"version": "0.2.5",
|
|
"description": "React Native bindings for RustO! OCR library",
|
|
"keywords": [
|
|
"android",
|
|
"ios",
|
|
"react-native"
|
|
],
|
|
"homepage": "https://github.com/byrizki/rusto-rs#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/byrizki/rusto-rs/issues"
|
|
},
|
|
"license": "MIT",
|
|
"author": "byrizki <[email protected]> (https://github.com/byrizki)",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/byrizki/rusto-rs.git"
|
|
},
|
|
"source": "src/index",
|
|
"files": [
|
|
"src",
|
|
"lib",
|
|
"android/build.gradle",
|
|
"android/src",
|
|
"ios/Rusto.m",
|
|
"ios/Rusto.swift",
|
|
"ios/react-native-rusto-Bridging-Header.h",
|
|
"cpp",
|
|
"react-native.config.js",
|
|
"*.podspec"
|
|
],
|
|
"main": "lib/commonjs/index",
|
|
"module": "lib/module/index",
|
|
"types": "lib/typescript/index.d.ts",
|
|
"typings": "lib/typescript/index.d.ts",
|
|
"react-native": "src/index",
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"test": "jest",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "oxlint",
|
|
"lint:fix": "oxlint --fix",
|
|
"format": "oxfmt",
|
|
"format:check": "oxfmt --check",
|
|
"clean": "del-cli lib",
|
|
"prepare": "bob build",
|
|
"release": "release-it"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/config-conventional": "^17.0.2",
|
|
"@evilmartians/lefthook": "^1.5.0",
|
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
"@types/jest": "^28.1.2",
|
|
"@types/react": "~18.2.6",
|
|
"@types/react-native": "0.70.19",
|
|
"commitlint": "^17.0.2",
|
|
"del-cli": "^5.0.0",
|
|
"jest": "^28.1.1",
|
|
"oxfmt": "^0.64.0",
|
|
"oxlint": "^1.79.0",
|
|
"react": "18.1.0",
|
|
"react-native": "0.70.15",
|
|
"react-native-builder-bob": "^0.20.0",
|
|
"release-it": "^15.0.0",
|
|
"typescript": "^5.0.2"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"commitlint": {
|
|
"extends": [
|
|
"@commitlint/config-conventional"
|
|
]
|
|
},
|
|
"jest": {
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/example/node_modules",
|
|
"<rootDir>/lib/"
|
|
]
|
|
},
|
|
"react-native-builder-bob": {
|
|
"source": "src",
|
|
"output": "lib",
|
|
"targets": [
|
|
"commonjs",
|
|
"module",
|
|
[
|
|
"typescript",
|
|
{
|
|
"project": "tsconfig.build.json"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"release-it": {
|
|
"git": {
|
|
"commitMessage": "chore: release ${version}",
|
|
"tagName": "v${version}"
|
|
},
|
|
"npm": {
|
|
"publish": true
|
|
},
|
|
"github": {
|
|
"release": true
|
|
},
|
|
"plugins": {
|
|
"@release-it/conventional-changelog": {
|
|
"preset": "angular"
|
|
}
|
|
}
|
|
}
|
|
}
|