Skip to content

Commit a43c66f

Browse files
authored
fix: type export for web (#1252)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent fc7725c commit a43c66f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
66

77
<!-- add unreleased items here -->
88

9+
* Fixed
10+
* Type exports for the web (via [#1252])
11+
12+
[#1252]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1252
13+
914
## 8.3.0 -- 2025-06-05
1015

1116
* Added

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,15 @@
106106
"webpack-cli": "6.0.1",
107107
"webpack-node-externals": "3.0.0"
108108
},
109-
"browser": "./dist.web/lib.js",
110109
"types": "./dist.d/index.node.d.ts",
110+
"browser": "./dist.web/lib.js",
111111
"main": "./dist.node/index.node.js",
112112
"exports": {
113113
".": {
114-
"types": "./dist.d/index.node.d.ts",
114+
"types": {
115+
"browser": "./dist.d/index.web.d.ts",
116+
"default": "./dist.d/index.node.d.ts"
117+
},
115118
"browser": "./dist.web/lib.js",
116119
"default": "./dist.node/index.node.js"
117120
},

0 commit comments

Comments
 (0)