This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"],
|
||||
}),
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user