Skip to content

Commit 5cc5554

Browse files
committed
chore!: replace optional deps with peer deps
Signed-off-by: Gautier Ben Aïm <[email protected]>
1 parent 74c6e7c commit 5cc5554

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,30 @@
8383
"packageurl-js": "^2.0.1",
8484
"spdx-expression-parse": "^3.0.1 || ^4"
8585
},
86-
"optionalDependencies": {
86+
"peerDependencies": {
8787
"ajv": "^8.12.0",
8888
"ajv-formats": "^3.0.1",
8989
"ajv-formats-draft2019": "^1.6.1",
9090
"libxmljs2": "^0.35||^0.37",
9191
"xmlbuilder2": "^3.0.2"
9292
},
93+
"peerDependenciesMeta": {
94+
"ajv": {
95+
"optional": true
96+
},
97+
"ajv-formats": {
98+
"optional": true
99+
},
100+
"ajv-formats-draft2019": {
101+
"optional": true
102+
},
103+
"libxmljs2": {
104+
"optional": true
105+
},
106+
"xmlbuilder2": {
107+
"optional": true
108+
}
109+
},
93110
"devDependencies": {
94111
"@types/mocha": "^10",
95112
"@types/node": "ts5.7",

0 commit comments

Comments
 (0)