185 lines
7.8 KiB
JSON
185 lines
7.8 KiB
JSON
{
|
|
"name": "maplibre-gl",
|
|
"description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
|
|
"version": "5.7.3",
|
|
"main": "dist/maplibre-gl.js",
|
|
"style": "dist/maplibre-gl.css",
|
|
"license": "BSD-3-Clause",
|
|
"homepage": "https://maplibre.org/",
|
|
"funding": "https://github.com/maplibre/maplibre-gl-js?sponsor=1",
|
|
"bugs": {
|
|
"url": "https://github.com/maplibre/maplibre-gl-js/issues/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/maplibre/maplibre-gl-js.git"
|
|
},
|
|
"types": "dist/maplibre-gl.d.ts",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@mapbox/geojson-rewind": "^0.5.2",
|
|
"@mapbox/jsonlint-lines-primitives": "^2.0.2",
|
|
"@mapbox/point-geometry": "^1.1.0",
|
|
"@mapbox/tiny-sdf": "^2.0.7",
|
|
"@mapbox/unitbezier": "^0.0.1",
|
|
"@mapbox/vector-tile": "^2.0.4",
|
|
"@mapbox/whoots-js": "^3.1.0",
|
|
"@maplibre/maplibre-gl-style-spec": "^24.1.1",
|
|
"@maplibre/vt-pbf": "^4.0.3",
|
|
"@types/geojson": "^7946.0.16",
|
|
"@types/geojson-vt": "3.2.5",
|
|
"@types/supercluster": "^7.1.3",
|
|
"earcut": "^3.0.2",
|
|
"geojson-vt": "^4.0.2",
|
|
"gl-matrix": "^3.4.4",
|
|
"kdbush": "^4.0.2",
|
|
"murmurhash-js": "^1.0.0",
|
|
"pbf": "^4.0.1",
|
|
"potpack": "^2.1.0",
|
|
"quickselect": "^3.0.0",
|
|
"supercluster": "^8.0.1",
|
|
"tinyqueue": "^3.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@mapbox/mapbox-gl-rtl-text": "^0.3.0",
|
|
"@mapbox/mvt-fixtures": "^3.10.0",
|
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
"@rollup/plugin-json": "^6.1.0",
|
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
"@rollup/plugin-replace": "^6.0.2",
|
|
"@rollup/plugin-strip": "^3.0.4",
|
|
"@rollup/plugin-terser": "^0.4.4",
|
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
"@stylistic/eslint-plugin": "^5.3.1",
|
|
"@types/benchmark": "^2.1.5",
|
|
"@types/d3": "^7.4.3",
|
|
"@types/earcut": "^3.0.0",
|
|
"@types/eslint": "^9.6.1",
|
|
"@types/gl": "^6.0.5",
|
|
"@types/jsdom": "^21.1.7",
|
|
"@types/minimist": "^1.2.5",
|
|
"@types/murmurhash-js": "^1.0.6",
|
|
"@types/nise": "^1.4.5",
|
|
"@types/node": "^24.5.2",
|
|
"@types/offscreencanvas": "^2019.7.3",
|
|
"@types/pixelmatch": "^5.2.6",
|
|
"@types/pngjs": "^6.0.5",
|
|
"@types/react": "^19.1.13",
|
|
"@types/react-dom": "^19.1.9",
|
|
"@types/request": "^2.48.13",
|
|
"@types/shuffle-seed": "^1.1.3",
|
|
"@types/window-or-global": "^1.0.6",
|
|
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
"@typescript-eslint/parser": "^8.43.0",
|
|
"@vitest/coverage-v8": "3.2.4",
|
|
"@vitest/eslint-plugin": "^1.3.12",
|
|
"@vitest/ui": "3.2.4",
|
|
"address": "^2.0.3",
|
|
"autoprefixer": "^10.4.21",
|
|
"benchmark": "^2.1.4",
|
|
"canvas": "^3.2.0",
|
|
"cspell": "^9.2.1",
|
|
"cssnano": "^7.1.1",
|
|
"d3": "^7.9.0",
|
|
"d3-queue": "^3.0.7",
|
|
"devtools-protocol": "^0.0.1517051",
|
|
"diff": "^8.0.2",
|
|
"dts-bundle-generator": "^9.5.1",
|
|
"eslint": "^9.35.0",
|
|
"eslint-plugin-html": "^8.1.3",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-tsdoc": "0.4.0",
|
|
"expect": "^30.1.2",
|
|
"glob": "^11.0.3",
|
|
"globals": "^16.4.0",
|
|
"is-builtin-module": "^5.0.0",
|
|
"jsdom": "^26.1.0",
|
|
"junit-report-builder": "^5.1.1",
|
|
"minimist": "^1.2.8",
|
|
"mock-geolocation": "^1.0.11",
|
|
"monocart-coverage-reports": "^2.12.9",
|
|
"nise": "^6.1.1",
|
|
"npm-font-open-sans": "^1.1.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"pdf-merger-js": "^5.1.2",
|
|
"pixelmatch": "^7.1.0",
|
|
"pngjs": "^7.0.0",
|
|
"postcss": "^8.5.6",
|
|
"postcss-cli": "^11.0.1",
|
|
"postcss-inline-svg": "^6.0.0",
|
|
"pretty-bytes": "^7.0.1",
|
|
"puppeteer": "^24.22.0",
|
|
"react": "^19.1.1",
|
|
"react-dom": "^19.1.1",
|
|
"rollup": "^4.50.2",
|
|
"rollup-plugin-sourcemaps2": "^0.5.4",
|
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
"rw": "^1.3.3",
|
|
"semver": "^7.7.2",
|
|
"sharp": "^0.34.4",
|
|
"shuffle-seed": "^1.1.6",
|
|
"st": "^3.0.3",
|
|
"stylelint": "^16.24.0",
|
|
"stylelint-config-standard": "^39.0.0",
|
|
"ts-node": "^10.9.2",
|
|
"tslib": "^2.8.1",
|
|
"typedoc": "^0.28.13",
|
|
"typedoc-plugin-markdown": "^4.8.1",
|
|
"typescript": "^5.9.2",
|
|
"vitest": "3.2.4",
|
|
"vitest-webgl-canvas-mock": "^1.1.0"
|
|
},
|
|
"scripts": {
|
|
"generate-dist-package": "node --no-warnings --loader ts-node/esm build/generate-dist-package.js",
|
|
"generate-shaders": "node --no-warnings --loader ts-node/esm build/generate-shaders.ts",
|
|
"generate-struct-arrays": "node --no-warnings --loader ts-node/esm build/generate-struct-arrays.ts",
|
|
"generate-style-code": "node --no-warnings --loader ts-node/esm build/generate-style-code.ts",
|
|
"generate-typings": "dts-bundle-generator --export-referenced-types=false --umd-module-name=maplibregl -o ./dist/maplibre-gl.d.ts ./src/index.ts",
|
|
"generate-docs": "typedoc && node --no-warnings --loader ts-node/esm build/generate-docs.ts",
|
|
"generate-images": "node --no-warnings --loader ts-node/esm build/generate-doc-images.ts",
|
|
"build-dist": "npm run build-css && npm run generate-typings && npm run generate-shaders && npm run build-dev && npm run build-csp-dev && npm run build-prod && npm run build-csp",
|
|
"build-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev",
|
|
"watch-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev --watch",
|
|
"build-prod": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production",
|
|
"build-csp": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts --environment BUILD:production",
|
|
"build-csp-dev": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts --environment BUILD:dev",
|
|
"build-css": "postcss -o dist/maplibre-gl.css src/css/maplibre-gl.css",
|
|
"watch-css": "postcss --watch -o dist/maplibre-gl.css src/css/maplibre-gl.css",
|
|
"build-benchmarks": "npm run build-dev && rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts",
|
|
"watch-benchmarks": "rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts --watch",
|
|
"bundle-stats": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production,BUNDLE:stats",
|
|
"spellcheck": "cspell",
|
|
"start-server": "st --no-cache -H localhost --port 9966 .",
|
|
"start-docs": "docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material",
|
|
"start": "run-p watch-css watch-dev start-server",
|
|
"start-bench": "run-p watch-css watch-benchmarks start-server",
|
|
"lint": "eslint",
|
|
"lint-css": "stylelint **/*.css --fix -f verbose",
|
|
"test": "run-p lint lint-css test-render test-unit test-integration test-build",
|
|
"test-unit": "vitest run --config vitest.config.unit.ts",
|
|
"test-unit-ci": "vitest run --config vitest.config.unit.ts --coverage",
|
|
"test-integration": "vitest run --config vitest.config.integration.ts",
|
|
"test-integration-ci": "vitest run --config vitest.config.integration.ts --coverage",
|
|
"test-build": "vitest run --config vitest.config.build.ts",
|
|
"test-build-ci": "vitest run --config vitest.config.build.ts --coverage",
|
|
"test-watch-roots": "vitest --config vitest.config.unit.ts --watch",
|
|
"test-render": "node --no-warnings --loader ts-node/esm test/integration/render/run_render_tests.ts",
|
|
"codegen": "run-p --print-label generate-dist-package generate-style-code generate-struct-arrays generate-shaders && npm run generate-typings",
|
|
"benchmark": "node --no-warnings --loader ts-node/esm test/bench/run-benchmarks.ts",
|
|
"gl-stats": "node --no-warnings --loader ts-node/esm test/bench/gl-stats.ts",
|
|
"prepare": "npm run codegen",
|
|
"typecheck": "tsc --noEmit && tsc --project tsconfig.dist.json",
|
|
"tsnode": "node --experimental-loader=ts-node/esm --no-warnings"
|
|
},
|
|
"files": [
|
|
"build/",
|
|
"dist/*",
|
|
"src/"
|
|
],
|
|
"engines": {
|
|
"npm": ">=8.1.0",
|
|
"node": ">=16.14.0"
|
|
}
|
|
}
|