Switch to semver (#7)
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
This commit was merged in pull request #7.
This commit is contained in:
Julien Valverdé
2024-01-05 01:00:04 +01:00
parent 9a84c59731
commit 1630d4d736
3 changed files with 8 additions and 3 deletions

34
rollup.config.ts Normal file
View File

@@ -0,0 +1,34 @@
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"],
}),
],
})