Skip to content

Commit

Permalink
fix: use proper entrypoint for d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Oct 4, 2023
1 parent 9f8dfe3 commit 3c6e9b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ const external = (id: string) =>
!id.startsWith("\0") && !id.startsWith(".") && !id.startsWith("/");

export default defineConfig({
plugins: [dts()],
plugins: [dts({ entryRoot: "./src" })],
build: {
lib: {
entry: path.resolve(__dirname, "src/index.ts"),
name: " arg-services",
fileName: "index",
formats: ["es"],
},
Expand Down

0 comments on commit 3c6e9b5

Please sign in to comment.