Skip to content

Commit 653c99d

Browse files
add types to exports and remove redundant entry point fields (#245)
fixes #242 esm bundle name fix, add default fallback condition in export --------- Co-authored-by: Carlo Beck <carlobeck96@outlook.de> Co-authored-by: jodeleit-es <>
1 parent 6363817 commit 653c99d

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
"version": "11.1.0",
44
"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.",
55
"keywords": [],
6-
"main": "dist/fsxa-api.cjs.js",
7-
"module": "dist/fsxa-api.es5.js",
8-
"types": "dist/types",
96
"exports": {
107
".": {
11-
"import": "./dist/fsxa-api.es5.js",
12-
"require": "./dist/fsxa-api.cjs.js"
8+
"types": "./dist/types/index.d.ts",
9+
"import": "./dist/fsxa-api.esm.js",
10+
"require": "./dist/fsxa-api.cjs.js",
11+
"default": "./dist/fsxa-api.cjs.js"
1312
}
1413
},
1514
"author": "Tobias Golbs <golbs@e-spirit.com>",

proxy/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"name": "fsxa-proxy-api",
33
"version": "11.1.0",
44
"description": "This package represents the proxy version of the JavaScript Content API Library, running on the client side.",
5-
"main": "dist/fsxa-proxy-api.cjs.js",
6-
"module": "dist/fsxa-proxy-api.es5.js",
7-
"types": "dist/types",
85
"author": "Justin Wiegmann <justin.wiegmann@crownpeak.com>",
96
"contributors": [
107
"Nicolai McAlley <nicolai.mcalley@crownpeak.com>"
@@ -15,8 +12,10 @@
1512
],
1613
"exports": {
1714
".": {
18-
"import": "./dist/fsxa-proxy-api.es5.js",
19-
"require": "./dist/fsxa-proxy-api.cjs.js"
15+
"types": "./dist/types/index.d.ts",
16+
"import": "./dist/fsxa-proxy-api.csm.js",
17+
"require": "./dist/fsxa-proxy-api.cjs.js",
18+
"default": "./dist/fsxa-proxy-api.cjs.js"
2019
}
2120
},
2221
"scripts": {

0 commit comments

Comments
 (0)