Initial files

This commit is contained in:
Julien Valverdé
2023-12-30 01:07:23 +01:00
parent 8365820639
commit ab2ee2d361
10 changed files with 781 additions and 1 deletions

30
rollup.config.js Normal file
View File

@@ -0,0 +1,30 @@
import { defineConfig } from "rollup"
import cleanup from "rollup-plugin-cleanup"
import ts from "rollup-plugin-ts"
import pkg from "./package.json" assert { type: "json" }
export default defineConfig({
input: "src/index.ts",
output: [
{
file: pkg.exports["."].import.default,
format: "esm",
},
{
file: pkg.exports["."].require.default,
format: "cjs",
},
],
plugins: [
ts(),
cleanup({
comments: "jsdoc",
extensions: ["ts"],
}),
],
})