From 3f229582c90709fede1980d015577b35c0c321f3 Mon Sep 17 00:00:00 2001 From: zhuoli Date: Tue, 28 Mar 2023 11:51:46 +0800 Subject: [PATCH] fixed 9f35b9f from https://gitee.com/inter515/xts_acts/pulls/8248 Example for add .d.ts for napi Signed-off-by: zhuoli Change-Id: I378c87853b1f774ded2a66be9a5dee2cc860c226 --- .../entry/node_modules/.package-lock.json | 14 +++++++++++ .../entry/node_modules/libbundlendk.so | 1 + .../entry/package-lock.json | 24 +++++++++++++++++++ .../actsbundlenativetest/entry/package.json | 6 +++++ .../main/cpp/types/libbundlendk/index.d.ts | 1 + .../main/cpp/types/libbundlendk/package.json | 4 ++++ 6 files changed, 50 insertions(+) create mode 100644 bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/.package-lock.json create mode 120000 bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/libbundlendk.so create mode 100644 bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package-lock.json create mode 100644 bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package.json create mode 100755 bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/index.d.ts create mode 100755 bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/package.json diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/.package-lock.json b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/.package-lock.json new file mode 100644 index 000000000..afcbc70e5 --- /dev/null +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/.package-lock.json @@ -0,0 +1,14 @@ +{ + "name": "entry", + "lockfileVersion": 2, + "requires": true, + "packages": { + "node_modules/libbundlendk.so": { + "resolved": "src/main/cpp/types/libbundlendk", + "link": true + }, + "src/main/cpp/types/libbundlendk": { + "dev": true + } + } +} diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/libbundlendk.so b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/libbundlendk.so new file mode 120000 index 000000000..47b3aa289 --- /dev/null +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/node_modules/libbundlendk.so @@ -0,0 +1 @@ +../src/main/cpp/types/libbundlendk \ No newline at end of file diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package-lock.json b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package-lock.json new file mode 100644 index 000000000..e111afcff --- /dev/null +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package-lock.json @@ -0,0 +1,24 @@ +{ + "name": "entry", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "devDependencies": { + "libbundlendk.so": "file:./src/main/cpp/types/libbundlendk" + } + }, + "node_modules/libbundlendk.so": { + "resolved": "src/main/cpp/types/libbundlendk", + "link": true + }, + "src/main/cpp/types/libbundlendk": { + "dev": true + } + }, + "dependencies": { + "libbundlendk.so": { + "version": "file:src/main/cpp/types/libbundlendk" + } + } +} diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package.json b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package.json new file mode 100644 index 000000000..3c9e266ed --- /dev/null +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/package.json @@ -0,0 +1,6 @@ +{ + "name": "entry", + "devDependencies": { + "libbundlendk.so": "file:./src/main/cpp/types/libbundlendk" + } +} diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/index.d.ts b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/index.d.ts new file mode 100755 index 000000000..2db28b1c1 --- /dev/null +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/index.d.ts @@ -0,0 +1 @@ +export const getCurrentApplicationInfo: () => any; diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/package.json b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/package.json new file mode 100755 index 000000000..f2b4df10c --- /dev/null +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/types/libbundlendk/package.json @@ -0,0 +1,4 @@ +{ + "name": "libbundlendk.so", + "types": "./index.d.ts" +} \ No newline at end of file -- GitLab