Add yarn resolution to avoid multiple versions of leaflet

pull/108/head
Candid Dauth 2017-11-14 01:12:25 +01:00
rodzic aa743318f6
commit 6d760a0b59
3 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -92,7 +92,10 @@ Development
Build it yourself
-----------------
Make sure to have yarn installed. Install the dependencies using `yarn run deps` and bundle the JavaScript
Make sure to have the newest version of yarn installed. `package.json` uses resolutions, which are only supported by
recent versions of yarn.
Install the dependencies using `yarn run deps` and bundle the JavaScript
by running `yarn run build`.
A better way to develop the frontend is to start facilmap-server in dev mode. It will set up a webpack-dev-server that

Wyświetl plik

@ -85,5 +85,8 @@
"unzipper": "^0.8.4",
"url-loader": "^0.5.7",
"webpack": "^2.2.1"
},
"resolutions": {
"**/leaflet": "1.0.3"
}
}

Wyświetl plik

@ -2769,7 +2769,7 @@ leaflet.markercluster@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/leaflet.markercluster/-/leaflet.markercluster-1.0.3.tgz#64c779365c0951f4885c3414024a994f3effc708"
leaflet@>=0.7.0, leaflet@^0.7.3, leaflet@^1.0.3:
leaflet@1.0.3, leaflet@>=0.7.0, leaflet@^0.7.3, leaflet@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.0.3.tgz#1f401b98b45c8192134c6c8d69686253805007c8"