1 | {
|
2 | "name": "maplibre-gl",
|
3 | "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
|
4 | "version": "2.4.0",
|
5 | "main": "dist/maplibre-gl.js",
|
6 | "style": "dist/maplibre-gl.css",
|
7 | "license": "BSD-3-Clause",
|
8 | "repository": {
|
9 | "type": "git",
|
10 | "url": "git://github.com/maplibre/maplibre-gl-js.git"
|
11 | },
|
12 | "types": "dist/maplibre-gl.d.ts",
|
13 | "type": "module",
|
14 | "dependencies": {
|
15 | "@mapbox/geojson-rewind": "^0.5.2",
|
16 | "@mapbox/jsonlint-lines-primitives": "^2.0.2",
|
17 | "@mapbox/mapbox-gl-supported": "^2.0.1",
|
18 | "@mapbox/point-geometry": "^0.1.0",
|
19 | "@mapbox/tiny-sdf": "^2.0.5",
|
20 | "@mapbox/unitbezier": "^0.0.1",
|
21 | "@mapbox/vector-tile": "^1.3.1",
|
22 | "@mapbox/whoots-js": "^3.1.0",
|
23 | "@types/geojson": "^7946.0.10",
|
24 | "@types/mapbox__point-geometry": "^0.1.2",
|
25 | "@types/mapbox__vector-tile": "^1.3.0",
|
26 | "@types/pbf": "^3.0.2",
|
27 | "csscolorparser": "~1.0.3",
|
28 | "earcut": "^2.2.4",
|
29 | "geojson-vt": "^3.2.1",
|
30 | "gl-matrix": "^3.4.3",
|
31 | "global-prefix": "^3.0.0",
|
32 | "murmurhash-js": "^1.0.0",
|
33 | "pbf": "^3.2.1",
|
34 | "potpack": "^1.0.2",
|
35 | "quickselect": "^2.0.0",
|
36 | "supercluster": "^7.1.5",
|
37 | "tinyqueue": "^2.0.3",
|
38 | "vt-pbf": "^3.1.3"
|
39 | },
|
40 | "devDependencies": {
|
41 | "@mapbox/gazetteer": "^5.1.0",
|
42 | "@mapbox/mapbox-gl-rtl-text": "^0.2.3",
|
43 | "@mapbox/mvt-fixtures": "^3.10.0",
|
44 | "@rollup/plugin-commonjs": "^22.0.2",
|
45 | "@rollup/plugin-json": "^4.1.0",
|
46 | "@rollup/plugin-node-resolve": "^13.3.0",
|
47 | "@rollup/plugin-replace": "^4.0.0",
|
48 | "@rollup/plugin-strip": "^2.1.0",
|
49 | "@rollup/plugin-typescript": "^8.3.4",
|
50 | "@types/benchmark": "^2.1.1",
|
51 | "@types/cssnano": "^5.0.0",
|
52 | "@types/d3": "^7.4.0",
|
53 | "@types/diff": "^5.0.2",
|
54 | "@types/earcut": "^2.1.1",
|
55 | "@types/eslint": "^8.4.6",
|
56 | "@types/gl": "^4.1.1",
|
57 | "@types/glob": "^7.2.0",
|
58 | "@types/jest": "^28.1.7",
|
59 | "@types/jsdom": "^20.0.0",
|
60 | "@types/minimist": "^1.2.2",
|
61 | "@types/murmurhash-js": "^1.0.3",
|
62 | "@types/nise": "^1.4.0",
|
63 | "@types/offscreencanvas": "^2019.7.0",
|
64 | "@types/pixelmatch": "^5.2.4",
|
65 | "@types/pngjs": "^6.0.1",
|
66 | "@types/react": "^18.0.17",
|
67 | "@types/react-dom": "^18.0.6",
|
68 | "@types/request": "^2.48.8",
|
69 | "@types/rollup-plugin-json": "^3.0.3",
|
70 | "@types/shuffle-seed": "^1.1.0",
|
71 | "@types/supercluster": "^7.1.0",
|
72 | "@types/window-or-global": "^1.0.4",
|
73 | "@typescript-eslint/eslint-plugin": "^5.34.0",
|
74 | "@typescript-eslint/parser": "^5.33.1",
|
75 | "acorn-import-assertions": "^1.8.0",
|
76 | "address": "^1.2.0",
|
77 | "benchmark": "^2.1.4",
|
78 | "canvas": "^2.9.3",
|
79 | "cssnano": "^5.1.13",
|
80 | "d3": "^7.6.1",
|
81 | "d3-queue": "^3.0.7",
|
82 | "diff": "^5.1.0",
|
83 | "documentation": "14.0.0",
|
84 | "dts-bundle-generator": "^6.12.0",
|
85 | "eslint": "^8.22.0",
|
86 | "eslint-config-mourner": "^3.0.0",
|
87 | "eslint-plugin-html": "^7.1.0",
|
88 | "eslint-plugin-import": "^2.26.0",
|
89 | "eslint-plugin-jest": "^26.8.7",
|
90 | "eslint-plugin-jsdoc": "^39.3.4",
|
91 | "eslint-plugin-react": "^7.30.1",
|
92 | "gl": "^5.0.3",
|
93 | "glob": "^8.0.3",
|
94 | "is-builtin-module": "^3.2.0",
|
95 | "jest": "^28.1.3",
|
96 | "jest-canvas-mock": "^2.4.0",
|
97 | "jest-environment-jsdom": "^28.1.3",
|
98 | "jest-playwright-preset": "^2.0.0",
|
99 | "jsdom": "^20.0.0",
|
100 | "json-stringify-pretty-compact": "^4.0.0",
|
101 | "mapbox-gl-styles": "^2.0.2",
|
102 | "minimist": "^1.2.6",
|
103 | "mock-geolocation": "^1.0.11",
|
104 | "nise": "^5.1.1",
|
105 | "node-plantuml": "^0.9.0",
|
106 | "npm-font-open-sans": "^1.1.0",
|
107 | "npm-run-all": "^4.1.5",
|
108 | "pdf-merger-js": "^4.0.0",
|
109 | "pixelmatch": "^5.3.0",
|
110 | "playwright": "^1.25.0",
|
111 | "pngjs": "^6.0.0",
|
112 | "postcss": "^8.4.14",
|
113 | "postcss-cli": "^10.0.0",
|
114 | "postcss-inline-svg": "^5.0.0",
|
115 | "pretty-bytes": "^6.0.0",
|
116 | "react": "^18.2.0",
|
117 | "react-dom": "^18.2.0",
|
118 | "request": "^2.88.0",
|
119 | "rollup": "^2.78.1",
|
120 | "rollup-plugin-import-assert": "^2.1.0",
|
121 | "rollup-plugin-sourcemaps": "^0.6.3",
|
122 | "rollup-plugin-terser": "^7.0.2",
|
123 | "rw": "^1.3.3",
|
124 | "semver": "^7.3.7",
|
125 | "shuffle-seed": "^1.1.6",
|
126 | "source-map-explorer": "^2.5.2",
|
127 | "st": "^3.0.0",
|
128 | "stylelint": "^14.11.0",
|
129 | "stylelint-config-standard": "^28.0.0",
|
130 | "ts-jest": "^28.0.8",
|
131 | "ts-node": "^10.9.1",
|
132 | "typescript": "^4.7.4"
|
133 | },
|
134 | "scripts": {
|
135 | "generate-shaders": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-shaders.ts",
|
136 | "generate-struct-arrays": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-struct-arrays.ts",
|
137 | "generate-style-code": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-style-code.ts",
|
138 | "generate-style-spec": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-style-spec.ts",
|
139 | "generate-typings": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-typings.ts",
|
140 | "generate-query-test-fixtures": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-query-test-fixtures.ts",
|
141 | "generate-debug-index-file": "node --loader ts-node/esm --experimental-specifier-resolution=node build/generate-debug-index-file.ts",
|
142 | "build-dist": "npm run generate-typings && npm run build-dev && npm run build-prod && npm run build-csp && npm run build-css",
|
143 | "build-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev",
|
144 | "watch-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev --watch",
|
145 | "build-prod": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production",
|
146 | "build-csp": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts",
|
147 | "build-css": "postcss -o dist/maplibre-gl.css src/css/maplibre-gl.css",
|
148 | "build-style-spec": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.style-spec.ts && rollup --configPlugin @rollup/plugin-typescript -c rollup.config.style-spec.ts --environment esm",
|
149 | "build-diagrams": "cd docs/diagrams; ls *.plantuml | xargs -I {} puml generate --svg {} -o {}.svg",
|
150 | "watch-css": "postcss --watch -o dist/maplibre-gl.css src/css/maplibre-gl.css",
|
151 | "build-benchmarks": "npm run build-dev && rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts",
|
152 | "watch-benchmarks": "rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts --watch",
|
153 | "start-server": "st --no-cache -H 0.0.0.0 --port 9966 --index index.html .",
|
154 | "start-server-at-test": "st --no-cache -H 0.0.0.0 --port 9966 --index index.html -d test",
|
155 | "start": "run-p watch-css start-server",
|
156 | "start-debug": "run-p watch-css watch-dev start-server",
|
157 | "start-bench": "run-p watch-css watch-benchmarks start-server-at-test",
|
158 | "lint": "eslint --cache --ext \".ts,.tsx,.js,.html\" --ignore-path .gitignore src test build",
|
159 | "lint-docs": "documentation lint src/index.ts",
|
160 | "lint-css": "stylelint \"src/css/maplibre-gl.css\"",
|
161 | "test": "run-s lint lint-css lint-docs test-unit",
|
162 | "test-build": "jest -c ./jest.config.builds.ts --roots ./test/build",
|
163 | "test-symbol-shaping": "jest --roots ./test/integration/symbol-shaping",
|
164 | "test-style-spec": "jest --roots ./test/integration/style-spec",
|
165 | "test-browser": "jest -c ./jest.config.e2e.ts --roots ./test/integration/browser",
|
166 | "test-render": "node --loader ts-node/esm --experimental-specifier-resolution=node --max-old-space-size=2048 test/integration/render/render.test.ts",
|
167 | "test-query": "jest -c ./jest.config.e2e.ts --roots ./test/integration/query",
|
168 | "test-expression": "jest --roots ./test/integration/expression",
|
169 | "test-unit": "jest --roots ./src -c ./jest.config.ts ",
|
170 | "codegen": "npm run generate-style-code && npm run generate-struct-arrays && npm run generate-style-spec && npm run generate-shaders && npm run generate-debug-index-file",
|
171 | "benchmark": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/run-benchmarks.ts",
|
172 | "gl-stats": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/gl-stats.ts",
|
173 | "postinstall": "node ./postinstall.js",
|
174 | "typecheck": "tsc --project tsconfig.typecheck.json"
|
175 | },
|
176 | "files": [
|
177 | "build/",
|
178 | "dist/*",
|
179 | "src/",
|
180 | "postinstall.js"
|
181 | ]
|
182 | }
|