From ddbe5b224fe2e7f7cb620dc684aaad60662e7d78 Mon Sep 17 00:00:00 2001 From: ruzell22 Date: Fri, 22 Nov 2024 00:45:56 +0800 Subject: [PATCH] ci(github): fix type exports in packages/cactus-common Primary Changes --------------- 1. Remove packages/cactus-common/hyperledger-cactus-common-*.tgz in ignore paths in get-all-tgz-path.ts file 2. Added the missing LogLevelDesc in index.ts as per attw -f json error log Fixes: #3635 Signed-off-by: ruzell22 --- .../cactus-common/src/main/typescript/index.ts | 15 +++++++++++++++ tools/custom-checks/get-all-tgz-path.ts | 2 -- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/cactus-common/src/main/typescript/index.ts b/packages/cactus-common/src/main/typescript/index.ts index 8f6c6cd3ca5..cceb083ea60 100755 --- a/packages/cactus-common/src/main/typescript/index.ts +++ b/packages/cactus-common/src/main/typescript/index.ts @@ -1,2 +1,17 @@ export * from "./public-api"; export { IListenOptions, Servers } from "./servers"; +export const LogLevel = { + TRACE: "TRACE", + trace: "trace", + ERROR: "ERROR", + error: "error", + WARN: "WARN", + warn: "warn", + INFO: "INFO", + info: "info", + DEBUG: "DEBUG", + debug: "debug", + SILENT: "SILENT", + silent: "silent", +} as const; +export type LogLevelDesc = (typeof LogLevel)[keyof typeof LogLevel]; diff --git a/tools/custom-checks/get-all-tgz-path.ts b/tools/custom-checks/get-all-tgz-path.ts index d95bf71fb53..19d44af9638 100644 --- a/tools/custom-checks/get-all-tgz-path.ts +++ b/tools/custom-checks/get-all-tgz-path.ts @@ -58,8 +58,6 @@ export async function getAllTgzPath(): Promise { "packages/cactus-verifier-client/hyperledger-cactus-verifier-client-*.tgz", // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3634 "packages/cactus-plugin-ledger-connector-polkadot/hyperledger-cactus-plugin-ledger-connector-polkadot-*.tgz", - // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3635 - "packages/cactus-common/hyperledger-cactus-common-*.tgz", ], };