All checks were successful
continuous-integration/drone/push Build is passing
Switches versioning to semver. New version is 0.1.0. Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: https://git.jvalver.de/Thilawyn/thilatrait/pulls/7
35 lines
717 B
TypeScript
35 lines
717 B
TypeScript
import { nodeResolve } from "@rollup/plugin-node-resolve"
|
|
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",
|
|
},
|
|
],
|
|
|
|
external: id => !/^[./]/.test(id),
|
|
|
|
plugins: [
|
|
nodeResolve(),
|
|
ts(),
|
|
|
|
cleanup({
|
|
comments: "jsdoc",
|
|
extensions: ["ts"],
|
|
}),
|
|
],
|
|
})
|