From 6a9d2e1a4d43fcd3b6e495f8fae1bb2c0f84a177 Mon Sep 17 00:00:00 2001 From: Dmitry Zelenetskiy Date: Mon, 21 Dec 2020 11:59:02 +0200 Subject: [PATCH] fixing dependencies to support yarn2 strict mode Signed-off-by: Dmitry Zelenetskiy --- .gitignore | 3 +++ packages/cli/generators/openapi/spec-loader.js | 2 +- packages/cli/package.json | 4 +++- packages/openapi-v3/package.json | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 15ce1ccf8060..69017766427a 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,6 @@ benchmark/dist # Docs preview docs/_loopback.io/ docs/_preview/ + +# IDE files +/.idea diff --git a/packages/cli/generators/openapi/spec-loader.js b/packages/cli/generators/openapi/spec-loader.js index 95656c6cdd88..6dda1ed8feca 100644 --- a/packages/cli/generators/openapi/spec-loader.js +++ b/packages/cli/generators/openapi/spec-loader.js @@ -5,7 +5,7 @@ 'use strict'; const chalk = require('chalk'); -const SwaggerParser = require('swagger-parser'); +const SwaggerParser = require('@apidevtools/swagger-parser'); const swagger2openapi = require('swagger2openapi'); const {debugJson, cloneSpecObject} = require('./utils'); const {generateControllerSpecs} = require('./spec-helper'); diff --git a/packages/cli/package.json b/packages/cli/package.json index 8f3809718f56..06df7153c627 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -10,6 +10,7 @@ "access": "public" }, "dependencies": { + "@apidevtools/swagger-parser": "^10.0.2", "@lerna/project": "^3.21.0", "@openapi-contrib/openapi-schema-to-json-schema": "^3.0.4", "@phenomnomnominal/tsquery": "^4.1.1", @@ -19,6 +20,7 @@ "debug": "^4.3.1", "fs-extra": "^9.0.1", "glob": "^7.1.6", + "inquirer": "^7.3.3", "inquirer-autocomplete-prompt": "^1.3.0", "json5": "^2.1.3", "latest-version": "^5.1.0", @@ -27,6 +29,7 @@ "minimist": "^1.2.5", "mkdirp": "^1.0.4", "natural-compare": "^1.4.0", + "openapi-types": "^7.0.1", "pacote": "^11.1.13", "pluralize": "^8.0.0", "regenerate": "^1.4.2", @@ -35,7 +38,6 @@ "spdx-license-list": "^6.3.0", "stringify-object": "^3.3.0", "strong-globalize": "^6.0.5", - "swagger-parser": "^10.0.2", "swagger2openapi": "^7.0.4", "tabtab": "^3.0.2", "terminal-link": "^2.1.1", diff --git a/packages/openapi-v3/package.json b/packages/openapi-v3/package.json index 2dfc8b12c428..faa625c2a3ba 100644 --- a/packages/openapi-v3/package.json +++ b/packages/openapi-v3/package.json @@ -26,6 +26,7 @@ "@loopback/core": "^2.13.1" }, "dependencies": { + "@loopback/repository": "^3.3.0", "@loopback/repository-json-schema": "^3.2.0", "debug": "^4.3.1", "http-status": "^1.5.0",