From c80ac94083e91223a4154b66043ed46660c93cf5 Mon Sep 17 00:00:00 2001 From: Jiminy Panoz Date: Mon, 9 Sep 2024 17:39:31 +0200 Subject: [PATCH] Adding Fetcher to shared global index --- shared/package.json | 6 +++--- shared/src/index.ts | 3 ++- shared/vite.config.js | 7 +++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/shared/package.json b/shared/package.json index 681df079..1082f8c1 100644 --- a/shared/package.json +++ b/shared/package.json @@ -18,8 +18,8 @@ "web", "epub" ], - "main": "./dist/shared.umd.cjs", - "module": "./dist/shared.js", + "main": "./dist/index.umd.cjs", + "module": "./dist/index.js", "types": "./types/src/index.d.ts", "files": [ "dist", @@ -37,7 +37,7 @@ }, "size-limit": [ { - "path": "dist/shared.js", + "path": "dist/index.js", "limit": "50 KB" } ], diff --git a/shared/src/index.ts b/shared/src/index.ts index 46796990..c73f9525 100644 --- a/shared/src/index.ts +++ b/shared/src/index.ts @@ -1,3 +1,4 @@ +export * from './fetcher'; export * from './publication'; export * from './opds'; -export * from './util'; +export * from './util'; \ No newline at end of file diff --git a/shared/vite.config.js b/shared/vite.config.js index 5adcc2f3..3bdca6a7 100644 --- a/shared/vite.config.js +++ b/shared/vite.config.js @@ -4,10 +4,9 @@ import { defineConfig } from "vite"; export default defineConfig({ build: { lib: { - entry: { - shared: resolve(__dirname, "src/index.ts"), - fetcher: resolve(__dirname, "src/fetcher/index.ts") - } + entry: resolve(__dirname, "src/index.ts"), + name: "shared", + fileName: "index" } } }); \ No newline at end of file