Files
PMTiles/js/package.json
Brandon Liu 6052ca2d57 js 2.8.0
2023-06-17 10:44:57 +08:00

39 lines
1.4 KiB
JSON

{
"name": "pmtiles",
"version": "2.8.0",
"description": "PMTiles archive decoder for browsers",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"source": "index.ts",
"files": [
"dist",
"index.ts"
],
"scripts": {
"build-iife": "esbuild index.ts --outfile=dist/index.js --target=es6 --global-name=pmtiles --bundle --format=iife",
"build-esm": "esbuild index.ts --outfile=dist/index.mjs --target=es6 --global-name=pmtiles --bundle --format=esm",
"build-cjs": "esbuild index.ts --outfile=dist/index.cjs --target=es6 --global-name=pmtiles --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": "node -r esbuild-runner/register test/index.test.ts",
"tsc": "tsc --noEmit --watch",
"prettier": "prettier --write *.ts test/*.ts",
"prettier-check": "prettier --check *.ts test/*.ts"
},
"homepage": "https://github.com/protomaps/pmtiles",
"author": "Brandon Liu",
"license": "BSD-3-Clause",
"devDependencies": {
"@types/node": "^18.11.9",
"esbuild": "^0.15.11",
"esbuild-runner": "^2.2.1",
"prettier": "^2.8.4",
"typescript": "^4.5.5"
},
"dependencies": {
"compression-streams-polyfill": "^0.1.3",
"fflate": "^0.8.0"
}
}