From db3583751474997dd72a0209ca61daddbac16c46 Mon Sep 17 00:00:00 2001 From: Josh Kelley Date: Wed, 5 Oct 2022 12:06:01 -0400 Subject: [PATCH] fix: fix Yarn peer dependency warning from @babel/core (#786) 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 9b095454..baf8719c 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",