diff --git a/src/index.ts b/src/index.ts index b03748d..90b74c8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,13 +1,13 @@ -import * as Oveleaf from "./page/overleaf"; +import * as Overleaf from "./page/overleaf"; import { ToolName } from "./tool"; export { getToolInfo, getToolsInfo, allTools } from "./tool"; -const PAGE_HANDLER_MAP: Record = { - "www.overleaf.com": Oveleaf.PageHandler, +const PAGE_HANDLER_MAP: Record = { + "www.overleaf.com": Overleaf.PageHandler, }; const PAGE_TOOLS_MAP: Record = { - "www.overleaf.com": Oveleaf.availableTools, + "www.overleaf.com": Overleaf.availableTools, }; export const isPageSupported = (url: string) => { @@ -31,3 +31,5 @@ export const getAvailableTools = () => { } console.error("[Web Agent Interface] No tools found for the current page"); }; + +export * as Overleaf from './page/overleaf'; \ No newline at end of file diff --git a/webpack.config.cjs b/webpack.config.cjs index d9a0d60..cf91089 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -12,7 +12,7 @@ module.exports = { type: "commonjs2", }, clean: { - keep: "index.d.ts", + keep: /\.d\.ts$/, }, sourceMapFilename: "[file].map", },