mirror of
https://github.com/acamarata/luxon-hijri.git
synced 2026-06-30 18:54:28 +00:00
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.
17 lines
376 B
TypeScript
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' };
|
|
},
|
|
});
|