mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
* Option to load metadata in MapLibre adapter [#247] * pass metadata: true to new Protocol() to make an extra request and populate attribution + vector_layers * js 3.2.0 [#247] * simplify examples * update leaflet and maplibre versions * add maplibre_headers.html example for custom headers [#397]
46 lines
1.4 KiB
JSON
46 lines
1.4 KiB
JSON
{
|
|
"name": "pmtiles",
|
|
"version": "3.2.0",
|
|
"description": "PMTiles archive decoder for browsers",
|
|
"type": "module",
|
|
"exports": {
|
|
"require":"./dist/index.cjs",
|
|
"default":"./dist/index.js"
|
|
},
|
|
"types": "./dist/index.d.ts",
|
|
"source": "index.ts",
|
|
"files": [
|
|
"dist",
|
|
"adapters.ts",
|
|
"index.ts",
|
|
"v2.ts"
|
|
],
|
|
"scripts": {
|
|
"build-iife": "esbuild index.ts --outfile=dist/pmtiles.js --target=es6 --global-name=pmtiles --bundle --format=iife",
|
|
"build-esm": "esbuild index.ts --outfile=dist/index.js --target=es6 --bundle --format=esm",
|
|
"build-cjs": "esbuild index.ts --outfile=dist/index.cjs --target=es6 --bundle --format=cjs",
|
|
"build-tsc": "tsc --declaration --emitDeclarationOnly --outdir dist",
|
|
"build": "npm run build-iife && npm run build-esm && npm run build-cjs && npm run build-tsc",
|
|
"test": "tsx test/index.test.ts",
|
|
"tsc": "tsc --noEmit --watch",
|
|
"biome": "biome check adapters.ts index.ts v2.ts test --apply",
|
|
"biome-check": "biome check adapters.ts index.ts v2.ts test"
|
|
},
|
|
"homepage": "https://github.com/protomaps/pmtiles",
|
|
"author": "Brandon Liu",
|
|
"license": "BSD-3-Clause",
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^1.5.3",
|
|
"@types/node": "^18.11.9",
|
|
"esbuild": "^0.20.0",
|
|
"msw": "^2.1.5",
|
|
"tsx": "^4.7.0",
|
|
"typedoc": "^0.25.7",
|
|
"typescript": "^4.5.5"
|
|
},
|
|
"dependencies": {
|
|
"@types/leaflet": "^1.9.8",
|
|
"fflate": "^0.8.0"
|
|
}
|
|
}
|