@react-native-ohos/sample-package
Version:
react native harmony sample package
64 lines (63 loc) • 1.86 kB
JSON
{
"name": "@react-native-ohos/sample-package",
"description": "react native harmony sample package",
"react-native": "src/index.ts",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"types": "lib/typescript/index.d.ts",
"license": "MIT",
"version": "1.0.0-rc.1",
"scripts": {
"prepack": "bob build",
"pack:prod": "npm pack",
"start": "react-native start",
"codegen-lib": "react-native codegen-lib-harmony --no-safety-check --npm-package-name sample --cpp-output-path ../tester/harmony/sample_package/src/main/cpp/generated --ets-output-path ../tester/harmony/sample_package/src/main/ets/generated --turbo-modules-spec-paths ./src/specs/NativeGeneratedSampleTurboModule.ts --cpp-components-spec-paths ./src/specs/CAPINativeComponent.ts --arkts-components-spec-paths ./src/specs/ArkTSNativeComponent.ts"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"files": [
"src",
"harmony",
"lib",
"License",
"package.json",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__"
],
"keywords": [
"react-native",
"harmony",
"sample-package"
],
"harmony": {
"alias": "sample-package"
},
"devDependencies": {
"@types/events": "^3.0.3",
"@types/react": "^18.3.12",
"react-native-builder-bob": "^0.21.3",
"react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27",
"typescript": "4.5.5"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
}
}