map-gl-style-switcher
Version:
A customizable style switcher control for Mapbox GL JS and MapLibre GL JS
140 lines (139 loc) • 4.15 kB
JSON
{
"name": "map-gl-style-switcher",
"version": "0.9.1",
"description": "A customizable style switcher control for Mapbox GL JS and MapLibre GL JS",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./react": {
"types": "./dist/react.d.ts",
"import": "./dist/react.js",
"require": "./dist/react.js"
},
"./react-map-gl": {
"types": "./dist/react-map-gl.d.ts",
"import": "./dist/react-map-gl.js",
"require": "./dist/react-map-gl.js"
},
"./dist/map-gl-style-switcher.css": "./dist/map-gl-style-switcher.css"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=16",
"npm": ">=8.0.0"
},
"keywords": [
"mapbox",
"maplibre",
"map",
"style",
"switcher",
"basemap",
"control",
"typescript",
"accessibility",
"react",
"react-map-gl"
],
"author": "Muhammad Imran Siddique",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/muimsd/map-gl-style-switcher.git"
},
"bugs": {
"url": "https://github.com/muimsd/map-gl-style-switcher/issues"
},
"homepage": "https://github.com/muimsd/map-gl-style-switcher#readme",
"demo": "https://map-gl-style-switcher.netlify.app",
"peerDependencies": {
"mapbox-gl": ">=1.0.0",
"maplibre-gl": ">=2.0.0",
"react": ">=16.8.0",
"react-map-gl": ">=7.0.0"
},
"peerDependenciesMeta": {
"mapbox-gl": {
"optional": true
},
"maplibre-gl": {
"optional": true
},
"react": {
"optional": true
},
"react-map-gl": {
"optional": true
}
},
"scripts": {
"dev": "vite",
"build": "npm run clean && npm run type-check && rollup -c",
"build:prod": "npm run clean && npm run type-check && npm run lint && rollup -c",
"build:watch": "rollup -c --watch",
"build:example": "vite build --outDir dist-demo",
"preview:example": "vite preview --outDir dist-demo",
"clean": "rimraf dist",
"type-check": "tsc --noEmit",
"type-check:watch": "tsc --noEmit --watch",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint src --ext ts,tsx --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,css,md}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,css,md}\"",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:ci": "jest --ci --coverage --watchAll=false",
"validate": "npm run type-check && npm run lint && npm run format:check && npm run test:ci",
"release:patch": "npm version patch && npm publish",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
"prepublishOnly": "npm run validate && npm run build:prod",
"postversion": "git push && git push --tags"
},
"devDependencies": {
"@eslint/js": "^9.25.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-typescript": "^12.1.2",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/mapbox-gl": "^3.4.1",
"@types/maplibre-gl": "^1.13.2",
"@types/node": "^22.10.7",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.4.1",
"eslint": "^9.25.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"maplibre-gl": "^5.6.0",
"prettier": "^3.4.2",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-map-gl": "^8.0.4",
"rimraf": "^6.0.1",
"rollup": "^4.43.0",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-postcss": "^4.0.2",
"ts-jest": "^29.2.6",
"tslib": "^2.8.1",
"typescript": "~5.8.3",
"typescript-eslint": "^8.30.1",
"vite": "^6.3.5"
}
}