新增 withXuqmConfig(metroConfig) Metro 插件: - 扫描 src/assets/config/ 下的 *.xuqmconfig 文件 - 通过 resolveRequest 拦截 @xuqm/autoinit-config 模块 - 宿主只需放入下载的 .xuqmconfig 文件,无需重命名 对齐 Android SDK 的 ConfigFileReader 逻辑。 Co-Authored-By: Claude <noreply@anthropic.com>
37 行
898 B
JSON
37 行
898 B
JSON
{
|
|
"name": "@xuqm/rn-common",
|
|
"version": "0.4.0",
|
|
"description": "XuqmGroup RN SDK — core: init, network, token management",
|
|
"license": "UNLICENSED",
|
|
"main": "src/index.ts",
|
|
"react-native": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"metro": "metro/index.js",
|
|
"files": [
|
|
"src",
|
|
"metro"
|
|
],
|
|
"private": false,
|
|
"publishConfig": {
|
|
"registry": "https://nexus.xuqinmin.com/repository/npm-hosted/"
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=18.0.0",
|
|
"react-native": ">=0.76.0",
|
|
"@react-native-async-storage/async-storage": ">=1.21.0",
|
|
"axios": ">=1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.9.3",
|
|
"@types/react": "^19.0.0",
|
|
"@react-native-async-storage/async-storage": "^2.1.2",
|
|
"axios": "^1.7.0",
|
|
"react": "^19.0.0",
|
|
"react-native": "^0.85.0",
|
|
"zod": "^3.23.0"
|
|
}
|
|
}
|