mirror of
https://github.com/acamarata/qibla.git
synced 2026-07-01 19:34:28 +00:00
fix: align exports and files with tsup output — no "type":"module"
Without "type":"module" in package.json, tsup generates index.d.ts (CJS fallback) and index.d.mts (ESM) rather than index.d.ts + index.d.cts. Removes "type":"module" since .cjs/.mjs extensions make it redundant, updates exports.require.types to index.d.ts, and drops index.d.cts from files.
This commit is contained in:
parent
1d57238ea9
commit
6179da5a45
1 changed files with 3 additions and 4 deletions
|
|
@ -4,18 +4,17 @@
|
||||||
"description": "Qibla direction, great-circle path, and haversine distance. Pure math, zero dependencies.",
|
"description": "Qibla direction, great-circle path, and haversine distance. Pure math, zero dependencies.",
|
||||||
"author": "Aric Camarata",
|
"author": "Aric Camarata",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
|
||||||
"main": "./dist/index.cjs",
|
"main": "./dist/index.cjs",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.mts",
|
||||||
"default": "./dist/index.mjs"
|
"default": "./dist/index.mjs"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"types": "./dist/index.d.cts",
|
"types": "./dist/index.d.ts",
|
||||||
"default": "./dist/index.cjs"
|
"default": "./dist/index.cjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -25,7 +24,7 @@
|
||||||
"dist/index.cjs",
|
"dist/index.cjs",
|
||||||
"dist/index.mjs",
|
"dist/index.mjs",
|
||||||
"dist/index.d.ts",
|
"dist/index.d.ts",
|
||||||
"dist/index.d.cts"
|
"dist/index.d.mts"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20"
|
"node": ">=20"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue