From c3cb570c3b24f8014dfd06bf88f74eacc563c2bf Mon Sep 17 00:00:00 2001 From: Carlo Beck Date: Thu, 12 Mar 2026 15:16:25 +0100 Subject: [PATCH 1/2] Fix(package.json) add types to exports and remove redundant entry point fields (#244) * fix(package.json): add types to exports and remove redundant entry point fields * fixes #242 --- package.json | 4 +--- proxy/package.json | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 237ad8e..8093e2c 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,9 @@ "version": "11.1.0", "description": "The JavaScript Content API Library a.k.a. Content API is an interface handling data coming from the FirstSpirit CaaS and the Navigation Service.", "keywords": [], - "main": "dist/fsxa-api.cjs.js", - "module": "dist/fsxa-api.es5.js", - "types": "dist/types", "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/fsxa-api.es5.js", "require": "./dist/fsxa-api.cjs.js" } diff --git a/proxy/package.json b/proxy/package.json index 980a06a..7284f30 100644 --- a/proxy/package.json +++ b/proxy/package.json @@ -2,9 +2,6 @@ "name": "fsxa-proxy-api", "version": "11.1.0", "description": "This package represents the proxy version of the JavaScript Content API Library, running on the client side.", - "main": "dist/fsxa-proxy-api.cjs.js", - "module": "dist/fsxa-proxy-api.es5.js", - "types": "dist/types", "author": "Justin Wiegmann ", "contributors": [ "Nicolai McAlley " @@ -15,6 +12,7 @@ ], "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/fsxa-proxy-api.es5.js", "require": "./dist/fsxa-proxy-api.cjs.js" } From 193bc2ec6d6c7423a1153f5f078f4249ff507afc Mon Sep 17 00:00:00 2001 From: jodeleit-es <> Date: Thu, 12 Mar 2026 15:38:58 +0100 Subject: [PATCH 2/2] esm bundle name fix, add default fallback condition in export --- package.json | 5 +++-- proxy/package.json | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8093e2c..3b4340f 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ "exports": { ".": { "types": "./dist/types/index.d.ts", - "import": "./dist/fsxa-api.es5.js", - "require": "./dist/fsxa-api.cjs.js" + "import": "./dist/fsxa-api.esm.js", + "require": "./dist/fsxa-api.cjs.js", + "default": "./dist/fsxa-api.cjs.js" } }, "author": "Tobias Golbs ", diff --git a/proxy/package.json b/proxy/package.json index 7284f30..5bc9f87 100644 --- a/proxy/package.json +++ b/proxy/package.json @@ -13,8 +13,9 @@ "exports": { ".": { "types": "./dist/types/index.d.ts", - "import": "./dist/fsxa-proxy-api.es5.js", - "require": "./dist/fsxa-proxy-api.cjs.js" + "import": "./dist/fsxa-proxy-api.csm.js", + "require": "./dist/fsxa-proxy-api.cjs.js", + "default": "./dist/fsxa-proxy-api.cjs.js" } }, "scripts": {