From 64cfcdc7820acf7c1236d208f6ffa587d8cb97d2 Mon Sep 17 00:00:00 2001 From: thiemok Date: Thu, 11 Apr 2024 15:18:33 +0200 Subject: [PATCH] fix(deps): add missing optional peer dependencies 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",