mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
js 3.0.6 (#399)
* js 3.0.6 * add CommonJS fallback for NodeJS projects not using ESM.
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{
|
||||
"name": "pmtiles",
|
||||
"version": "3.0.5",
|
||||
"version": "3.0.6",
|
||||
"description": "PMTiles archive decoder for browsers",
|
||||
"type": "module",
|
||||
"exports": "./dist/index.js",
|
||||
"exports": {
|
||||
"require":"./dist/index.cjs",
|
||||
"default":"./dist/index.js"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"source": "index.ts",
|
||||
"files": [
|
||||
@@ -15,8 +18,9 @@
|
||||
"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-tsc",
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user