From d172a2475a51d93c66fd55ed112dec9fcfa4e81d Mon Sep 17 00:00:00 2001 From: Rowan Winsemius Date: Wed, 20 Apr 2022 20:10:29 +1000 Subject: [PATCH] update package.json --- package.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 71a8c5a..e4fd597 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,17 @@ "name": "georaster-layer-for-leaflet", "version": "3.7.1", "description": "Display GeoTIFFs and soon other types of raster on your Leaflet Map", - "source": "src/georaster-layer-for-leaflet.ts", - "main": "dist/georaster-layer-for-leaflet.min.js", - "unpkg": "dist/georaster-layer-for-leaflet.min.js", + "type": "module", + "main": "dist/georaster-layer-for-leaflet.bundle.js", + "module": "dist/georaster-layer-for-leaflet.js", + "exports": { + "./package.json": "./package.json", + ".": { + "import": "./dist/georaster-layer-for-leaflet.js", + "require": "./dist/georaster-layer-for-leaflet.bundle.js" + } + }, + "browser": "dist/georaster-layer-for-leaflet.min.js", "types": "dist/georaster-layer-for-leaflet.d.ts", "scripts": { "clean": "rimraf dist",