Skip to content

Commit

Permalink
Adding Fetcher to shared global index
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPanoz committed Sep 9, 2024
1 parent 2b799fe commit c80ac94
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -37,7 +37,7 @@
},
"size-limit": [
{
"path": "dist/shared.js",
"path": "dist/index.js",
"limit": "50 KB"
}
],
Expand Down
3 changes: 2 additions & 1 deletion shared/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './fetcher';
export * from './publication';
export * from './opds';
export * from './util';
export * from './util';
7 changes: 3 additions & 4 deletions shared/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
});

0 comments on commit c80ac94

Please sign in to comment.