diff --git a/bun.lockb b/bun.lockb index ada479e..3116094 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 54a9941..9868657 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "devDependencies": { "bun-types": "latest", "rollup": "^4.7.0", + "rollup-plugin-cleanup": "^3.2.1", "rollup-plugin-ts": "^3.4.5", "typescript": "^5.3.3" } diff --git a/rollup.config.js b/rollup.config.js index 87e9671..da6b231 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,4 +1,5 @@ import { defineConfig } from "rollup" +import cleanup from "rollup-plugin-cleanup" import ts from "rollup-plugin-ts" import pkg from "./package.json" assert { type: "json" } @@ -6,8 +7,6 @@ import pkg from "./package.json" assert { type: "json" } export default defineConfig({ input: "src/index.ts", - plugins: [ ts() ], - output: [ { file: pkg.exports["."].import.default, @@ -19,4 +18,13 @@ export default defineConfig({ format: "cjs", }, ], + + plugins: [ + ts(), + + cleanup({ + comments: "jsdoc", + extensions: ["ts"], + }), + ], })