Skip to content

Commit

Permalink
Set the compiled file in dist as the main file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
trygveaa committed Mar 20, 2020
1 parent 405e3bf commit 13e7190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 13e7190

Please sign in to comment.