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.
77 lines
1.8 KiB
JSON
77 lines
1.8 KiB
JSON
{
|
|
"name": "luxon-hijri",
|
|
"version": "2.1.0",
|
|
"description": "Hijri/Gregorian date conversion and formatting using the Umm al-Qura calendar. Built on Luxon. Supports toHijri, toGregorian, formatHijriDate, and isValidHijriDate.",
|
|
"author": "Aric Camarata",
|
|
"license": "MIT",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.cjs"
|
|
}
|
|
}
|
|
},
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist/index.cjs",
|
|
"dist/index.mjs",
|
|
"dist/index.d.ts",
|
|
"dist/index.d.mts",
|
|
"README.md",
|
|
"CHANGELOG.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"packageManager": "pnpm@10.30.1",
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"typecheck": "tsc --noEmit",
|
|
"pretest": "tsup",
|
|
"test": "node test.mjs && node test-cjs.cjs",
|
|
"prepublishOnly": "tsup"
|
|
},
|
|
"keywords": [
|
|
"hijri",
|
|
"gregorian",
|
|
"calendar",
|
|
"converter",
|
|
"luxon",
|
|
"umm-al-qura",
|
|
"islamic",
|
|
"date",
|
|
"format",
|
|
"typescript"
|
|
],
|
|
"dependencies": {
|
|
"hijri-core": "file:../hijri-core",
|
|
"luxon": "^3.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/luxon": "^3.4.2",
|
|
"@types/node": "^22.0.0",
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.5.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/acamarata/luxon-hijri.git"
|
|
},
|
|
"homepage": "https://github.com/acamarata/luxon-hijri#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/acamarata/luxon-hijri/issues"
|
|
}
|
|
}
|