luxon-hijri/tsup.config.ts
Aric Camarata 30afd3c8a7 feat: v2.1.0 — delegate engine logic to hijri-core
All Hijri conversion logic (UAQ table, FCNA algorithm, month/weekday
names, isValidHijriDate) now lives in hijri-core and is re-exported
from this package with identical signatures. Zero breaking changes:
the public API surface, type exports, and behavior are unchanged.

src/fcna.ts removed — FCNA engine is in hijri-core.
src/hDates.ts, hMonths.ts, hWeekdays.ts, utils.ts, toHijri.ts,
toGregorian.ts all rewritten as thin re-exports or single-line wrappers.

hijri-core added as a runtime dependency.
2026-02-25 14:14:29 -05:00

17 lines
376 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: ['luxon', 'hijri-core'],
outExtension({ format }) {
return { js: format === 'cjs' ? '.cjs' : '.mjs' };
},
});