diff --git a/shared/package.json b/shared/package.json index 681df07..1082f8c 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 4679699..c73f952 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 5adcc2f..3bdca6a 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