From cbb16eb4cbfea32cf4ce71ca3d7ad96c5902b6c1 Mon Sep 17 00:00:00 2001 From: ruzell22 Date: Fri, 6 Dec 2024 14:36:08 +0800 Subject: [PATCH] ci(github): fix type exports in cactus-example-cbdc-bridging-frontend Primary Changes --------------- 1. Removed examples/cactus-example-cbdc-bridging-frontend-*.tgz in ignore paths in get-all-tgz-path.ts file 2. Added main, module, types, and files in package.json Fixes: #3631 Signed-off-by: ruzell22 --- examples/cactus-example-cbdc-bridging-frontend/package.json | 6 ++++++ tools/custom-checks/get-all-tgz-path.ts | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/cactus-example-cbdc-bridging-frontend/package.json b/examples/cactus-example-cbdc-bridging-frontend/package.json index f5d81c43fa..57ba1f01fc 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/package.json +++ b/examples/cactus-example-cbdc-bridging-frontend/package.json @@ -3,6 +3,12 @@ "version": "2.1.0", "private": true, "license": "Apache-2.0", + "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": "react-scripts build", "eject": "react-scripts eject", diff --git a/tools/custom-checks/get-all-tgz-path.ts b/tools/custom-checks/get-all-tgz-path.ts index 19d44af963..1cc4f80277 100644 --- a/tools/custom-checks/get-all-tgz-path.ts +++ b/tools/custom-checks/get-all-tgz-path.ts @@ -50,8 +50,6 @@ export async function getAllTgzPath(): Promise { "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/3631 - "examples/cactus-example-cbdc-bridging-frontend/hyperledger-cacti-example-cbdc-bridging-frontend-*.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