diff --git a/example/harmony/build-profile.template.json5 b/example/harmony/build-profile.template.json5 index 456717bc52ca4fdd7d759b03792048378a35f7db..33cda6ccaddb869b20575e50403c4299eaf0d850 100644 --- a/example/harmony/build-profile.template.json5 +++ b/example/harmony/build-profile.template.json5 @@ -31,10 +31,6 @@ ], }, ], - }, - { - "name": "document_picker", - "srcPath": '../../harmony/document_picker' } ], } diff --git a/example/harmony/entry/oh-package.json5 b/example/harmony/entry/oh-package.json5 index 97166a54f0b9d9163b8434791f02a2bf8289e4d2..039702991d462f3d32d5319fb47047fba38895de 100644 --- a/example/harmony/entry/oh-package.json5 +++ b/example/harmony/entry/oh-package.json5 @@ -6,6 +6,6 @@ "version": "1.0.0", "dependencies": { "@rnoh/react-native-openharmony": "0.72.38", - "@react-native-ohos/react-native-document-picker": "file:../../../harmony/document_picker" + "@react-native-ohos/react-native-document-picker": "file:../../../harmony/document_picker.har" } } diff --git a/example/package.json b/example/package.json index 573afd04360860837e61e4cc373f28273a87446d..ac15aa0512d0e3559a41cf3cec9ccb468acf08d7 100644 --- a/example/package.json +++ b/example/package.json @@ -11,7 +11,8 @@ "install:pkg": "npm uninstall @react-native-ohos/react-native-document-picker && npm run pack:pkg && npm i @react-native-ohos/react-native-document-picker@file:../react-native-ohos-react-native-document-picker-9.2.1-rc.1.tgz", "dev": "npm run codegen && react-native bundle-harmony --dev --minify=false", "prod": "npm run codegen && react-native bundle-harmony --dev=false --minify=true", - "postinstall": "node ./scripts/create-build-profile" + "postinstall": "node ./scripts/create-build-profile", + "fast:pkg": "cd ../ && npm i --legacy-peer-deps && npm pack && cd ./example && npm i --legacy-peer-deps && npm run dev" }, "dependencies": { "@gorhom/portal": "^1.0.14", @@ -52,14 +53,14 @@ "simple-statistics": "^7.8.3", "ts-jest": "^29.1.1", "typescript": "^5.3.2", - "yargs": "^17.7.2" + "yargs": "^17.7.2", + "@rnoh/react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27" }, "overrides": { - "@rnoh/react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27", - "@react-native-community/cli": "11.3.6", + "@react-native-community/cli": "11.4.1", "@react-native/codegen": "0.74.0" }, "resolutions": { - "@react-native-community/cli": "11.3.6" + "@react-native-community/cli": "11.4.1" } }