You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.7 KiB

2 years ago
{
"name": "react-leaflet",
"version": "4.0.1",
"description": "React components for Leaflet maps",
"repository": {
"type": "git",
"url": "https://github.com/PaulLeCam/react-leaflet.git"
},
"keywords": [
"react-component",
"react",
"leaflet",
"map"
],
"author": "Paul Le Cam <paul@ulem.net>",
"license": "Hippocratic-2.1",
"bugs": {
"url": "https://github.com/PaulLeCam/react-leaflet/issues"
},
"homepage": "https://react-leaflet.js.org",
"type": "module",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": "./lib/index.js",
"./*": "./lib/*.js"
},
"files": [
"lib/*"
],
"sideEffects": false,
"scripts": {
"build:clean": "del lib",
"build:js": "swc src -d ./lib --config-file ../../.swcrc",
"build:types": "tsc --emitDeclarationOnly",
"build": "yarn run build:clean && yarn run build:types && yarn run build:js",
"test:types": "tsc --noEmit",
"test:unit": "cross-env NODE_ENV=test jest",
"test": "yarn run test:types && yarn run test:unit",
"start": "yarn run test && yarn run build",
"prepare": "yarn run build",
"prepublishOnly": "package-check"
},
"dependencies": {
"@react-leaflet/core": "^2.0.0"
},
"peerDependencies": {
"leaflet": "^1.8.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@types/leaflet": "^1.7.11"
},
"jest": {
"extensionsToTreatAsEsm": [
".ts",
".tsx"
],
"resolver": "ts-jest-resolver",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
"root": "../.."
}
]
}
}
}