UNPKG

maplibre-gl-js-amplify

Version:

MapLibre Plugin to Support Amplify Geo Integration

125 lines (124 loc) 4.13 kB
{ "name": "maplibre-gl-js-amplify", "version": "4.0.2", "description": "MapLibre Plugin to Support Amplify Geo Integration", "main": "./lib/cjs/index.js", "module": "./lib/esm/index.js", "unpkg": "dist/maplibre-gl-js-amplify.umd.min.js", "types": "lib/esm/index.d.ts", "files": [ "/dist", "/lib" ], "scripts": { "build": "npm run clean && npm run copy:files && npm run compile && npm run bundle:umd && npm run bundle:umd:min", "bundle:umd": "rollup lib/esm/index.js --config", "bundle:umd:min": "terser --ecma 6 --compress --mangle -o dist/maplibre-gl-js-amplify.umd.min.js -- dist/maplibre-gl-js-amplify.umd.js && gzip -9 -c dist/maplibre-gl-js-amplify.umd.min.js > dist/maplibre-gl-js-amplify.umd.min.js.gz", "clean": "rimraf dist && rimraf lib", "compile": "npm run tsc", "copy:files": "mkdir -p dist/public/ lib/cjs/public lib/esm/public && cp src/public/* dist/public/ && cp src/public/* lib/cjs/public/ && cp src/public/* lib/esm/public/", "lint": "eslint src --ext .js,.ts", "prepublish": "npm run build", "publish:release": "yarn publish --access=public --non-interactive", "publish:geo": "yarn publish --access=public --non-interactive --tag geo", "publish:unstable": "yarn publish --new-version 0.0.0-unstable-$(git rev-parse --short=7 HEAD) --access=public --non-interactive --tag unstable", "test": "jest", "test:coverage": "jest --coverage", "tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json", "semantic-release": "semantic-release", "prepare": "husky install" }, "repository": { "type": "ssh", "url": "git@github.com:aws-amplify/maplibre-gl-js-amplify.git" }, "keywords": [ "Amplify" ], "author": "", "license": "Apache-2.0", "bugs": { "url": "https://github.com/aws-amplify/maplibre-gl-js-amplify/issues" }, "homepage": "https://github.com/aws-amplify/maplibre-gl-js-amplify#readme", "release": { "branches": [ { "name": "main", "prerelease": "unstable", "channel": "unstable" }, { "name": "release" }, { "name": "geo", "prerelease": "geo", "channel": "geo" } ] }, "devDependencies": { "@aws-amplify/core": "^6.x.x", "@aws-amplify/geo": "^3.x.x", "@babel/preset-env": "^7.22.9", "@commitlint/cli": "^17.6.6", "@commitlint/config-conventional": "^17.6.6", "@types/debounce": "^1.2.1", "@types/geojson": "^7946.0.7", "@types/jest": "^27.0.2", "@types/mapbox__mapbox-gl-draw": "^1.2.3", "@types/node": "^15.6.1", "@typescript-eslint/eslint-plugin": "^6.1.0", "@typescript-eslint/parser": "^6.1.0", "aws-amplify": "^6.x.x", "babel-jest": "^27.3.1", "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.3", "eslint-plugin-prettier": "^5.0.0", "husky": "^7.0.4", "jest": "^27.0.3", "jest-fetch-mock": "^3.0.3", "jest-transform-stub": "^2.0.0", "jest-webgl-canvas-mock": "^2.5.0", "lint-staged": ">=10", "maplibre-gl": "^2.1.9", "prettier": "^3.0.0", "rollup": "^2.55.1", "rollup-plugin-import-css": "^3.0.2", "rollup-plugin-svg": "^2.0.0", "semantic-release": "^19.0.2", "terser": "^5.7.1", "ts-jest": "^27.0.2", "typescript": "^4.3.2" }, "peerDependencies": { "@aws-amplify/geo": "3.x.x", "aws-amplify": "6.x.x", "maplibre-gl": "1.x.x || 2.x.x" }, "dependencies": { "@mapbox/mapbox-gl-draw": "1.3.0", "@maplibre/maplibre-gl-geocoder": "1.5.0", "@turf/along": "^6.5.0", "@turf/circle": "^6.5.0", "@turf/distance": "^6.5.0", "@turf/helpers": "^6.5.0", "@turf/length": "^6.5.0", "@turf/line-slice": "^6.5.0", "debounce": "^1.2.1", "maplibre-gl-draw-circle": "^0.1.1" }, "resolutions": { "**/fast-xml-parser": "4.4.1", "cross-spawn": "7.0.5", "json5": "^2.2.2", "optionator": "^0.9.3" }, "lint-staged": { "*.{js,ts}": "npm run lint", "*.{ts,tsx,js,css,md}": "prettier --write" } }