Skip to content

Commit 13e7190

Browse files
committed
Set the compiled file in dist as the main file
This lets people just import @mapbox/mapbox-gl-draw instead of having to import @mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.js. It's standard practise to set the compiled file in main, and most other packages including mapbox-gl does so.
1 parent 405e3bf commit 13e7190

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage": "https://github.com/mapbox/mapbox-gl-draw",
66
"author": "mapbox",
77
"license": "ISC",
8-
"main": "index.js",
8+
"main": "dist/mapbox-gl-draw.js",
99
"style": "dist/mapbox-gl-draw.css",
1010
"browserify": {
1111
"transform": [

0 commit comments

Comments
 (0)