From db88e7b155fdb0ea34051f2fcd7094ce60c24d74 Mon Sep 17 00:00:00 2001 From: Arindam Bose Date: Wed, 2 Sep 2020 13:10:04 -0700 Subject: [PATCH 1/2] Ensure package bundlers always pull the built file --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ab8e097da..6eac72523 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "homepage": "https://github.com/mapbox/mapbox-gl-draw", "author": "mapbox", "license": "ISC", - "main": "index.js", + "main": "dist/mapbox-gl-draw.js", "style": "dist/mapbox-gl-draw.css", "browserify": { "transform": [ From 70b9aaf6913ea289eaf6f4b1f8af52bbbefd2638 Mon Sep 17 00:00:00 2001 From: Arindam Bose Date: Wed, 2 Sep 2020 13:14:35 -0700 Subject: [PATCH 2/2] Update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6eac72523..dc3097b53 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "homepage": "https://github.com/mapbox/mapbox-gl-draw", "author": "mapbox", "license": "ISC", - "main": "dist/mapbox-gl-draw.js", + "main": "index.js", + "browser": "dist/mapbox-gl-draw.js", "style": "dist/mapbox-gl-draw.css", "browserify": { "transform": [