Project build

This commit is contained in:
Julien Valverdé
2023-12-09 02:06:43 +01:00
parent d7c80f0ba7
commit ddd3388534
9 changed files with 266 additions and 0 deletions

22
rollup.config.js Normal file
View File

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