From 303d9c9079b3ccd473c05af78aae7e0c5d43e03d Mon Sep 17 00:00:00 2001 From: UnButtun <79936503+Unbuttun@users.noreply.github.com> Date: Fri, 27 Aug 2021 23:26:03 +0530 Subject: [PATCH 1/3] Fixes https://github.com/vercel/styled-jsx/issues/736 Moving `@babel/core` from devDependencies to dependencies. Fixes the missing dependency error that comes while installing it through `Yarn 2, Yarn 3`. Error - ` styled-jsx@npm:4.0.0 [78a22] doesn't provide @babel/core (pad17e), requested by @babel/plugin-syntax-jsx ` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 92d654c1..4eea7bfe 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ } }, "dependencies": { + "@babel/core": "7.12.3", "@babel/plugin-syntax-jsx": "7.14.5", "@babel/types": "7.15.0", "convert-source-map": "1.7.0", @@ -70,7 +71,6 @@ }, "devDependencies": { "@babel/cli": "7.12.1", - "@babel/core": "7.12.3", "@babel/plugin-proposal-object-rest-spread": "7.12.1", "@babel/plugin-transform-arrow-functions": "7.12.1", "@babel/plugin-transform-modules-commonjs": "7.12.1", From d2b708a08a2c6fe72d10ccc049c02b162fd2d2aa Mon Sep 17 00:00:00 2001 From: UnButtun <79936503+Unbuttun@users.noreply.github.com> Date: Sat, 28 Aug 2021 11:54:08 +0530 Subject: [PATCH 2/3] moving babel back to dev deps and adding peerdependencies meta option --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4eea7bfe..a83c6db8 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,6 @@ } }, "dependencies": { - "@babel/core": "7.12.3", "@babel/plugin-syntax-jsx": "7.14.5", "@babel/types": "7.15.0", "convert-source-map": "1.7.0", @@ -70,6 +69,7 @@ "stylis-rule-sheet": "0.0.10" }, "devDependencies": { + "@babel/core": "7.12.3", "@babel/cli": "7.12.1", "@babel/plugin-proposal-object-rest-spread": "7.12.1", "@babel/plugin-transform-arrow-functions": "7.12.1", @@ -93,6 +93,11 @@ "peerDependencies": { "react": ">= 16.8.0 || 17.x.x || 18.x.x" }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + } + }, "engines": { "node": ">= 12.0.0" }, From 735848f7387c3b4857ab697602db4d76ca18fd77 Mon Sep 17 00:00:00 2001 From: UnButtun <79936503+Unbuttun@users.noreply.github.com> Date: Sat, 28 Aug 2021 11:54:58 +0530 Subject: [PATCH 3/3] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a83c6db8..ab2f1762 100644 --- a/package.json +++ b/package.json @@ -69,8 +69,8 @@ "stylis-rule-sheet": "0.0.10" }, "devDependencies": { - "@babel/core": "7.12.3", "@babel/cli": "7.12.1", + "@babel/core": "7.12.3", "@babel/plugin-proposal-object-rest-spread": "7.12.1", "@babel/plugin-transform-arrow-functions": "7.12.1", "@babel/plugin-transform-modules-commonjs": "7.12.1",