leaflet-geosearch
Version:
Adds support for address lookup (a.k.a. geocoding / geosearching) to Leaflet.
114 lines (113 loc) • 3.98 kB
JSON
{
"name": "leaflet-geosearch",
"version": "4.4.0",
"description": "Adds support for address lookup (a.k.a. geocoding / geosearching) to Leaflet.",
"publishConfig": {
"tag": "latest"
},
"main": "dist/geosearch.js",
"umd:main": "dist/geosearch.umd.js",
"module": "dist/geosearch.module.js",
"unpkg": "dist/geosearch.umd.js",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"amdName": "GeoSearch",
"exports": {
".": {
"browser": "./dist/geosearch.module.js",
"umd": "./dist/geosearch.umd.js",
"import": "./dist/geosearch.module.js",
"require": "./dist/geosearch.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json",
"./*": "./*"
},
"scripts": {
"clean": "rimraf ./dist .docz/dist",
"start": "concurrently npm:build:watch npm:docz:dev",
"build": "run-p build:dist build:lib build:css && npm run build:compat",
"build:dist": "microbundle build --external leaflet --globals leaflet=L --format es,cjs,umd",
"build:compat": "cp ./dist/geosearch.umd.js ./dist/bundle.min.js",
"build:lib": "tsc",
"build:css": "mkdir -p dist && cp ./assets/css/leaflet.css ./dist/geosearch.css",
"build:watch": "npm run build:dist -- --compress false --watch",
"test": "jest",
"lint": "tsc --noEmit && eslint \"{docs,src,test}/**/*.{js,ts,tsx}\" --quiet --fix && prettier \"**/*.{md,mdx,json}\" --write",
"docz:dev": "docz dev",
"docz:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider docz build",
"docz:serve": "docz build && docz serve",
"docs:update": "run-s clean build docz:build && git checkout gh-pages && find . -maxdepth 1 -type f -not -path '*/\\.*' -delete && cp -r .docz/dist/* . && git add . && (git diff --staged --exit-code || git commit -m \"update docs\") && git checkout - && git push origin gh-pages",
"prepublish": "run-s test clean build",
"ci:lint": "eslint \"{docs,src,test}/**/*.{js,ts,tsx}\" -c ./.eslintrc.js",
"ci:tsc": "tsc --noEmit --project ./tsconfig.json",
"ci:test": "jest --ci",
"bump:patch": "npm version patch -m 'release: cut the %s release'",
"bump:minor": "npm version minor -m 'release: cut the %s release'",
"bump:major": "npm version major -m 'release: cut the %s release'"
},
"files": [
"src",
"dist",
"lib",
"assets"
],
"keywords": [
"maps",
"leaflet",
"geocoding"
],
"repository": {
"type": "git",
"url": "git+https://github.com/smeijer/leaflet-geosearch.git"
},
"author": "Stephan Meijer <stephan@meijer.ws>",
"bugs": {
"url": "https://github.com/smeijer/leaflet-geosearch/issues"
},
"homepage": "https://leaflet-geosearch.meijer.works",
"license": "MIT",
"devDependencies": {
"@emotion/core": "^10.3.1",
"@types/google.maps": "^3.53.1",
"@types/jest": "^29.1.1",
"@types/leaflet": "^1.9.20",
"@types/lodash.debounce": "^4.0.6",
"@types/react-dom": "^18.0.6",
"@types/react-leaflet": "^2.5.1",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"concurrently": "^7.4.0",
"cross-env": "^7.0.3",
"docz": "^2.3.1",
"docz-theme-default": "^1.2.0",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.19.0",
"gatsby-plugin-react-leaflet": "^2.0.12",
"husky": "^4.2.5",
"jest": "^29.1.2",
"jest-environment-jsdom": "^29.1.2",
"jest-fetch-mock": "^3.0.3",
"lint-staged": "^13.0.3",
"microbundle": "^0.15.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-leaflet": "^2.6.3",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.3",
"typescript": "^4.8.4"
},
"optionalDependencies": {
"@googlemaps/js-api-loader": "^1.16.6",
"leaflet": "^1.6.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}