mirror of
https://github.com/acamarata/temporal-hijri.git
synced 2026-06-30 19:04:29 +00:00
17 lines
392 B
TypeScript
17 lines
392 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig({
|
|
entry: ["src/index.ts"],
|
|
format: ["cjs", "esm"],
|
|
dts: true,
|
|
clean: true,
|
|
outDir: "dist",
|
|
splitting: false,
|
|
sourcemap: true,
|
|
target: "es2020",
|
|
platform: "node",
|
|
external: ["hijri-core", "@js-temporal/polyfill"],
|
|
outExtension({ format }) {
|
|
return { js: format === "esm" ? ".mjs" : ".cjs" };
|
|
},
|
|
});
|