From 1fe133a8cce708fac3c047072bb339424142ec82 Mon Sep 17 00:00:00 2001 From: qinjianqi Date: Mon, 20 Jan 2025 14:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9react-native-community/cli?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=8A=E6=B7=BB=E5=8A=A0fast:pkg=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qinjianqi --- example/harmony/build-profile.template.json5 | 4 ---- example/harmony/entry/oh-package.json5 | 2 +- example/package.json | 11 ++++++----- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/example/harmony/build-profile.template.json5 b/example/harmony/build-profile.template.json5 index 456717b..33cda6c 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 97166a5..0397029 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 573afd0..ac15aa0 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" } } -- Gitee