From e4ecd7179390c13509a8a76fe5a7dcf0a30375a1 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Mon, 2 Dec 2024 09:36:13 +0200 Subject: [PATCH] Patch exports in @react-leaflet/core See https://github.com/PaulLeCam/react-leaflet/issues/1141 --- .../@react-leaflet-core-npm-2.1.0-de483ca53f.patch | 14 ++++++++++++++ frontend/package.json | 3 ++- frontend/yarn.lock | 13 ++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 frontend/.yarn/patches/@react-leaflet-core-npm-2.1.0-de483ca53f.patch diff --git a/frontend/.yarn/patches/@react-leaflet-core-npm-2.1.0-de483ca53f.patch b/frontend/.yarn/patches/@react-leaflet-core-npm-2.1.0-de483ca53f.patch new file mode 100644 index 0000000000..e3c070d298 --- /dev/null +++ b/frontend/.yarn/patches/@react-leaflet-core-npm-2.1.0-de483ca53f.patch @@ -0,0 +1,14 @@ +diff --git a/package.json b/package.json +index 924b5880e3bbd8aaf60c143d5abfa25dbadcd8b3..ee63bf9f5ba456623d6d9320fafcd2f0fa64e621 100644 +--- a/package.json ++++ b/package.json +@@ -22,7 +22,8 @@ + "main": "lib/index.js", + "types": "lib/index.d.ts", + "exports": { +- ".": "./lib/index.js" ++ ".": "./lib/index.js", ++ "./lib/context": "./lib/context.js" + }, + "files": [ + "lib/*" diff --git a/frontend/package.json b/frontend/package.json index 580978794b..40ff143ede 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -157,7 +157,8 @@ } }, "resolutions": { - "webpack@npm:5.37.1/terser-webpack-plugin": "5.1.1" + "webpack@npm:5.37.1/terser-webpack-plugin": "5.1.1", + "@react-leaflet/core@npm:^2.1.0": "patch:@react-leaflet/core@npm%3A2.1.0#~/.yarn/patches/@react-leaflet-core-npm-2.1.0-de483ca53f.patch" }, "engines": { "node": ">= 20.9.0" diff --git a/frontend/yarn.lock b/frontend/yarn.lock index a05741111f..3f8e703381 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -3156,7 +3156,7 @@ __metadata: languageName: node linkType: hard -"@react-leaflet/core@npm:^2.1.0": +"@react-leaflet/core@npm:2.1.0": version: 2.1.0 resolution: "@react-leaflet/core@npm:2.1.0" peerDependencies: @@ -3167,6 +3167,17 @@ __metadata: languageName: node linkType: hard +"@react-leaflet/core@patch:@react-leaflet/core@npm%3A2.1.0#~/.yarn/patches/@react-leaflet-core-npm-2.1.0-de483ca53f.patch": + version: 2.1.0 + resolution: "@react-leaflet/core@patch:@react-leaflet/core@npm%3A2.1.0#~/.yarn/patches/@react-leaflet-core-npm-2.1.0-de483ca53f.patch::version=2.1.0&hash=178615" + peerDependencies: + leaflet: ^1.9.0 + react: ^18.0.0 + react-dom: ^18.0.0 + checksum: 10/00e3a5982d41a27dd41113de55af31b47e2719151d5a4dd472115899a9ed3881b824c285f38c32a579034eefad1743332e9a27be205114fd14768ebb862835eb + languageName: node + linkType: hard + "@react-spring/animated@npm:~9.7.3": version: 9.7.3 resolution: "@react-spring/animated@npm:9.7.3"