From f4725a7c214db78a76653a1717ab1688b09412d3 Mon Sep 17 00:00:00 2001 From: ruzell22 Date: Wed, 18 Dec 2024 23:27:30 +0800 Subject: [PATCH] ci(github): fix type exports in packages/cacti-ledger-browser Primary Changes --------------- 1. Removed packages/cacti-ledger-browser/hyperledger-cacti-ledger-browser-*.tgz in ignore paths in get-all-tgz-path.ts file 2. Added main, module, types, and files in package.json Fixes: #3630 Signed-off-by: ruzell22 --- packages/cacti-ledger-browser/package.json | 6 ++++++ tools/custom-checks/get-all-tgz-path.ts | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/cacti-ledger-browser/package.json b/packages/cacti-ledger-browser/package.json index eec9d4aa7e..30dae00a44 100644 --- a/packages/cacti-ledger-browser/package.json +++ b/packages/cacti-ledger-browser/package.json @@ -41,6 +41,12 @@ "url": "https://www.fujitsu.com/global/" } ], + "main": "dist/lib/main/typescript/index.js", + "module": "dist/lib/main/typescript/index.js", + "types": "dist/lib/main/typescript/index.d.ts", + "files": [ + "dist/*" + ], "scripts": { "build": "yarn run tsc && yarn run build:prod:frontend", "build:dev:frontend": "vite build --mode=development", diff --git a/tools/custom-checks/get-all-tgz-path.ts b/tools/custom-checks/get-all-tgz-path.ts index 1cc4f80277..bdc885a0aa 100644 --- a/tools/custom-checks/get-all-tgz-path.ts +++ b/tools/custom-checks/get-all-tgz-path.ts @@ -48,8 +48,6 @@ export async function getAllTgzPath(): Promise { "packages/cacti-plugin-weaver-driver-fabric/src/main/typescript/hyperledger-cacti-weaver-driver-fabric-*.tgz", // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3629 "packages/cacti-plugin-copm-fabric/hyperledger-cacti-cacti-plugin-copm-fabric-*.tgz", - // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3630 - "packages/cacti-ledger-browser/hyperledger-cacti-ledger-browser-*.tgz", // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3632 "examples/cactus-common-example-server/hyperledger-cactus-common-example-server-*.tgz", // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3633