From 50427a398ab1b6852cb000b25b76b3dfc1585349 Mon Sep 17 00:00:00 2001 From: phil-sisutech Date: Mon, 17 Mar 2025 08:52:01 +0200 Subject: [PATCH] fix: unable to use js-api due to incorrect type exports --- lib/main.ts | 4 +--- tsconfig.lib.json | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/main.ts b/lib/main.ts index c0bbe5b..feb1f0d 100644 --- a/lib/main.ts +++ b/lib/main.ts @@ -1,3 +1 @@ -export { tsr, Config } from './tsr.js'; -export { Logger } from './util/Logger.js'; -export * from './util/error.js'; +export { tsr } from './tsr.js'; diff --git a/tsconfig.lib.json b/tsconfig.lib.json index cc6e60a..bdf6cfd 100644 --- a/tsconfig.lib.json +++ b/tsconfig.lib.json @@ -6,6 +6,7 @@ "lib": ["ES2023"], "target": "ES2022", "strict": true, + "emitDeclarationOnly": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true,