UNPKG

@vis.gl/react-google-maps

Version:

React components and hooks for the Google Maps JavaScript API

94 lines (93 loc) 3.41 kB
{ "name": "@vis.gl/react-google-maps", "version": "1.5.5", "description": "React components and hooks for the Google Maps JavaScript API", "source": "src/index.ts", "main": "dist/index.umd.js", "module": "dist/index.modern.mjs", "exports": { ".": { "require": "./dist/index.umd.js", "types": "./dist/index.d.ts", "default": "./dist/index.modern.mjs" }, "./server": { "require": "./dist/server/index.umd.js", "types": "./dist/server/index.d.ts", "default": "./dist/server/index.modern.mjs" }, "./examples.css": "./dist/examples.css" }, "types": "dist/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/visgl/react-google-maps.git" }, "bugs": { "url": "https://github.com/visgl/react-google-maps/issues" }, "homepage": "https://github.com/visgl/react-google-maps#readme", "license": "MIT", "scripts": { "clean": "rm -rf ./dist && mkdir ./dist", "build": "npm-run-all clean -p build:**", "start": "run-p start:*", "build:examples": "cp ./examples/examples.css dist", "build:microbundle": "microbundle -o dist/index.js -f modern,umd --globals react=React,react-dom=ReactDOM --jsx React.createElement --jsxFragment React.Fragment --no-compress --tsconfig tsconfig.build.json", "build:microbundle:server": "microbundle -o dist/server/index.js -f modern,umd --globals react=React,react-dom=ReactDOM --jsx React.createElement --jsxFragment React.Fragment --no-compress --tsconfig tsconfig.build.json ./src/server/index.ts", "start:microbundle": "microbundle watch -o dist/index.js -f modern,umd --globals react=React,react-dom=ReactDOM --jsx React.createElement --jsxFragment React.Fragment --no-compress --tsconfig tsconfig.build.json", "test:linter": "eslint 'src/**/*.{ts,tsx}'", "test:tsc": "tsc --project tsconfig.test.json --noEmit", "test:prettier": "prettier --check ./src ./examples", "test:unit": "jest", "test": "npm-run-all -p test:linter test:prettier test:tsc -s test:unit", "prepublishOnly": "npm run test && npm run build", "prepack": "npm-run-all clean build" }, "files": [ "./src", "./dist" ], "keywords": [ "React", "React Components", "React Hooks", "Google Maps", "Google Maps JavaScript API", "Maps" ], "dependencies": { "@types/google.maps": "^3.54.10", "fast-deep-equal": "^3.1.3" }, "peerDependencies": { "react": ">=16.8.0 || ^19.0 || ^19.0.0-rc", "react-dom": ">=16.8.0 || ^19.0 || ^19.0.0-rc" }, "devDependencies": { "@googlemaps/jest-mocks": "^2.18.0", "@testing-library/jest-dom": "^6.0.1", "@testing-library/react": "^16.0.0", "@testing-library/user-event": "^14.4.3", "@types/jest": "^30.0.0", "@types/react": "^19.0.3", "@types/react-dom": "^19.0.2", "@typescript-eslint/eslint-plugin": "^8.3.0", "@typescript-eslint/parser": "^8.3.0", "eslint": "^8.25.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-import": "^2.23.4", "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^5.0.0", "jest": "^30.0.4", "jest-environment-jsdom": "^29.4.3", "microbundle": "^0.15.1", "npm-run-all": "^4.1.5", "prettier": "^3.0.2", "react": "^19.0.0", "react-dom": "^19.0.0", "ts-jest": "^29.0.5", "typescript": "^5.1.6", "vite": "^6.0.2" } }