File size: 1,747 Bytes
d2efaca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
  "name": "react-leaflet",
  "version": "5.0.0",
  "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,
  "dependencies": {
    "@react-leaflet/core": "^3.0.0"
  },
  "peerDependencies": {
    "leaflet": "^1.9.0",
    "react": "^19.0.0",
    "react-dom": "^19.0.0"
  },
  "devDependencies": {
    "@types/geojson": "^7946.0.15",
    "@types/leaflet": "^1.9.15",
    "@types/react": "^19.0.1",
    "@types/react-dom": "^19.0.2"
  },
  "jest": {
    "extensionsToTreatAsEsm": [
      ".ts",
      ".tsx"
    ],
    "resolver": "ts-jest-resolver",
    "testEnvironment": "jsdom",
    "transform": {
      "^.+\\.(t|j)sx?$": [
        "@swc/jest",
        {
          "root": "../.."
        }
      ]
    }
  },
  "scripts": {
    "build:clean": "del lib",
    "build:js": "swc src -d ./lib --config-file ../../.swcrc --strip-leading-paths",
    "build:types": "tsc --emitDeclarationOnly",
    "build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
    "test:types": "tsc --noEmit",
    "test:unit": "cross-env NODE_ENV=test jest",
    "test": "pnpm run test:types && pnpm run test:unit",
    "start": "pnpm run test && pnpm run build"
  }
}