switch filename to index.mjs, add es2015 iife output [#9]

This commit is contained in:
Brandon Liu
2021-04-26 11:49:16 +08:00
parent 7d56cd95ec
commit 0d28385e85
4 changed files with 190 additions and 193 deletions

View File

@@ -2,9 +2,17 @@
"name": "pmtiles",
"version": "0.0.6",
"description": "PMTiles archive decoder for browsers",
"main": "pmtiles.js",
"main": "index",
"module":"index.mjs",
"unpkg":"index.js",
"jsdelivr":"index.js",
"files":[
"index.mjs",
"index.js"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "esbuild index.mjs --outfile=index.js --target=es2015 --global-name=pmtiles --format=iife"
},
"homepage": "https://github.com/protomaps/pmtiles",
"author": "Brandon Liu",