From c10ff6a17fef020b16adf8b0904c207ec9ea6c70 Mon Sep 17 00:00:00 2001 From: Xueying Wang Date: Tue, 10 Dec 2024 14:41:23 +0100 Subject: [PATCH] fix bun exports --- packages/client/package.json | 5 ++--- packages/client/src/lib.ts | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index dd71daf7..e104e513 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -9,13 +9,12 @@ "Xueying Wang " ], "repository": "https://github.com/sodazone/ocelloids-services", - "source": "./src/lib.ts", + "source": "./dist/deno/lib.ts", "exports": "./dist/lib.js", "module": "./dist/lib.js", "types": "./dist/ocelloids-client.d.ts", "files": [ - "/dist", - "/src" + "/dist" ], "license": "Apache-2.0", "engines": { diff --git a/packages/client/src/lib.ts b/packages/client/src/lib.ts index e802ba7d..77677f28 100644 --- a/packages/client/src/lib.ts +++ b/packages/client/src/lib.ts @@ -5,7 +5,25 @@ * * @packageDocumentation */ -export * from './server-types' +export * from './client' +export * from './types' +export type { + SubscriptionId, + AnyJson, + HexString, + Message, + SignerData, + AgentId, + QueryParams, + QueryResult, + QueryPagination, + AnyQueryArgs, + NetworkURN, + AnyQueryResultItem, + NetworkInfo, + sourceSteward, + sourceXcm, +} from './server-types' // The "export * as ___" syntax is not supported yet; as a workaround, // use "import * as ___" with a separate "export { ___ }" declaration