Skip to content

Commit

Permalink
ci(github): fix type exports in packages/cactus-common
Browse files Browse the repository at this point in the history
Primary Changes
---------------
1. Remove packages/cactus-common/hyperledger-cactus-common-*.tgz in ignore
paths in get-all-tgz-path.ts file
2. Added the log-level.ts for the missing exports detected by attw -f json
3. Added exports in public-api.ts from log-level.ts

Fixes: #3635

Signed-off-by: ruzell22 <[email protected]>
  • Loading branch information
ruzell22 authored and petermetz committed Dec 1, 2024
1 parent 467a1c0 commit 1c49527
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
18 changes: 18 additions & 0 deletions packages/cactus-common/src/main/typescript/log-level.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export const LogLevel = {
TRACE: 0,
DEBUG: 1,
INFO: 2,
WARN: 3,
ERROR: 4,
SILENT: 5,
} as const;
export type LogLevelNumbers = (typeof LogLevel)[keyof typeof LogLevel];
export type LogLevelDesc =
| LogLevelNumbers
| "trace"
| "debug"
| "info"
| "warn"
| "error"
| "silent"
| keyof typeof LogLevel;
3 changes: 2 additions & 1 deletion packages/cactus-common/src/main/typescript/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { LoggerProvider } from "./logging/logger-provider";
export { Logger, ILoggerOptions } from "./logging/logger";
export { LogLevelDesc } from "loglevel";
export { LogLevel, LogLevelNumbers, LogLevelDesc } from "./log-level";

export { Objects } from "./objects";
export { Strings } from "./strings";
export { Bools } from "./bools";
Expand Down
2 changes: 0 additions & 2 deletions tools/custom-checks/get-all-tgz-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export async function getAllTgzPath(): Promise<IGetAllTgzPathResponse> {
"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",
],
};

Expand Down

0 comments on commit 1c49527

Please sign in to comment.