Skip to content

Commit 7a7ea8e

Browse files
committed
chore!: replace optional deps with peer deps
1 parent 74c6e7c commit 7a7ea8e

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

package.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "8.6.0",
44
"description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
55
"license": "Apache-2.0",
6+
"sideEffects": false,
67
"keywords": [
78
"CycloneDX",
89
"models",
@@ -83,13 +84,30 @@
8384
"packageurl-js": "^2.0.1",
8485
"spdx-expression-parse": "^3.0.1 || ^4"
8586
},
86-
"optionalDependencies": {
87+
"peerDependencies": {
8788
"ajv": "^8.12.0",
8889
"ajv-formats": "^3.0.1",
8990
"ajv-formats-draft2019": "^1.6.1",
9091
"libxmljs2": "^0.35||^0.37",
9192
"xmlbuilder2": "^3.0.2"
9293
},
94+
"peerDependenciesMeta": {
95+
"ajv": {
96+
"optional": true
97+
},
98+
"ajv-formats": {
99+
"optional": true
100+
},
101+
"ajv-formats-draft2019": {
102+
"optional": true
103+
},
104+
"libxmljs2": {
105+
"optional": true
106+
},
107+
"xmlbuilder2": {
108+
"optional": true
109+
}
110+
},
93111
"devDependencies": {
94112
"@types/mocha": "^10",
95113
"@types/node": "ts5.7",
@@ -168,6 +186,10 @@
168186
"test": "./tests",
169187
"example": "./examples"
170188
},
189+
"files": [
190+
"dist*/**",
191+
"res"
192+
],
171193
"scripts": {
172194
"dev-setup": "npm i && run-p --aggregate-output -lc dev-setup:\\*",
173195
"dev-setup:tools": "run-p --aggregate-output -lc dev-setup:tools:\\*",

0 commit comments

Comments
 (0)