From f2e35d9f94821c4a4b35b443a6ca08f97148df94 Mon Sep 17 00:00:00 2001 From: Josh Kelley Date: Wed, 5 Oct 2022 10:10:51 -0400 Subject: [PATCH] Fix Yarn peer dependency warning from @babel/core MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Installing @svgr/core with Yarn Modern (Yarn 2+) gives the following warning: ``` ➤ YN0002: │ @svgr/core@npm:6.4.0 doesn't provide @babel/core (p0b84c), requested by @svgr/babel-preset ``` Fixes #785 --- package-lock.json | 2 ++ packages/core/package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/package-lock.json b/package-lock.json index acbad704..907a8c61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21317,6 +21317,7 @@ "version": "6.4.0", "license": "MIT", "dependencies": { + "@babel/core": "^7.18.5", "@svgr/babel-preset": "^6.4.0", "@svgr/plugin-jsx": "^6.4.0", "camelcase": "^6.2.0", @@ -25558,6 +25559,7 @@ "@svgr/core": { "version": "file:packages/core", "requires": { + "@babel/core": "^7.18.5", "@svgr/babel-preset": "^6.4.0", "@svgr/plugin-jsx": "^6.4.0", "@types/svgo": "^2.6.3", diff --git a/packages/core/package.json b/packages/core/package.json index 62c6d3b3..36bd5655 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -38,6 +38,7 @@ "prepublishOnly": "npm run reset && npm run build" }, "dependencies": { + "@babel/core": "^7.18.5", "@svgr/babel-preset": "^6.4.0", "@svgr/plugin-jsx": "^6.4.0", "camelcase": "^6.2.0",