From 657ab29c9f470b0341805b193791adbeeb1693df Mon Sep 17 00:00:00 2001 From: Thiemo Date: Fri, 12 Apr 2024 23:38:19 +0200 Subject: [PATCH] fix(deps): add missing optional peer dependencies (#259) A couple of optional peer dependencies were not declared in the package.json. This prevents compatibility with modern versions of yarn, since yarn will block access to undecalred dependencies. This adds the missing peer dependencies and marks them as optional so they only need to be installed when actually required --- package.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/package.json b/package.json index 3441ccd..58316b9 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,22 @@ "dependencies": { "lodash": "^4.17.21" }, + "peerDependencies": { + "swagger-ui-dist": ">=4.9.0", + "koa-static": "^5.0.0", + "koa-mount": "^4.0.0" + }, + "peerDependenciesMeta": { + "swagger-ui-dist": { + "optional": true + }, + "koa-static": { + "optional": true + }, + "koa-mount": { + "optional": true + } + }, "devDependencies": { "@feathersjs/express": "^5.0.12", "@feathersjs/feathers": "^5.0.12",