@florasync/leaflet-geokit 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "@florasync/leaflet-geokit",
3
+ "version": "0.2.0",
4
+ "description": "Framework-agnostic Leaflet + Leaflet.draw web component with TypeScript, verbose logging, and tests.",
5
+ "type": "module",
6
+ "main": "./dist/leaflet-geokit.umd.js",
7
+ "module": "./dist/leaflet-geokit.es.js",
8
+ "types": "./dist/types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/types/index.d.ts",
12
+ "import": "./dist/leaflet-geokit.es.js",
13
+ "require": "./dist/leaflet-geokit.umd.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "LICENSE",
19
+ "README.md",
20
+ "CHANGELOG.md"
21
+ ],
22
+ "sideEffects": [
23
+ "**/*.css"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/FloraSync/leaflet-geokit.git"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/FloraSync/leaflet-geokit/issues"
34
+ },
35
+ "homepage": "https://github.com/FloraSync/leaflet-geokit#readme",
36
+ "scripts": {
37
+ "dev": "vite",
38
+ "build": "tsc -p tsconfig.json --emitDeclarationOnly && vite build",
39
+ "preview": "vite preview",
40
+ "typecheck": "tsc -p tsconfig.json --noEmit",
41
+ "lint": "eslint . --ext .ts,.tsx,.js,.jsx",
42
+ "format": "prettier --write .",
43
+ "prettier:check": "prettier --check .",
44
+ "test": "npm run test:unit && npm run test:e2e",
45
+ "test:unit": "vitest run",
46
+ "test:unit:watch": "vitest",
47
+ "test:e2e": "playwright test",
48
+ "e2e:install": "playwright install --with-deps",
49
+ "prepare": "husky",
50
+ "prepack": "npm run build",
51
+ "pack:dry": "npm pack --dry-run",
52
+ "release:dry": "npm run typecheck && npm run test:unit && npm run build && npm pack --dry-run"
53
+ },
54
+ "keywords": [
55
+ "leaflet",
56
+ "leaflet-draw",
57
+ "web-component",
58
+ "geojson",
59
+ "preact",
60
+ "geokit",
61
+ "typescript"
62
+ ],
63
+ "author": "FloraSync",
64
+ "license": "MIT",
65
+ "engines": {
66
+ "node": ">=20",
67
+ "npm": ">=9"
68
+ },
69
+ "dependencies": {
70
+ "leaflet": "^1.9.4",
71
+ "leaflet-draw": "^1.0.4",
72
+ "leaflet-ruler": "^1.0.0",
73
+ "preact": "^10.24.0",
74
+ "uuid": "^9.0.1"
75
+ },
76
+ "devDependencies": {
77
+ "@playwright/test": "^1.47.0",
78
+ "@preact/preset-vite": "^2.8.0",
79
+ "@testing-library/dom": "^10.4.0",
80
+ "@testing-library/preact": "^3.2.4",
81
+ "@types/geojson": "^7946.0.14",
82
+ "@types/leaflet": "^1.9.9",
83
+ "@types/leaflet-draw": "^1.0.10",
84
+ "@types/node": "^22.0.0",
85
+ "@typescript-eslint/eslint-plugin": "^8.0.1",
86
+ "@typescript-eslint/parser": "^8.0.1",
87
+ "@vitest/coverage-v8": "^3.2.4",
88
+ "eslint": "^9.9.0",
89
+ "happy-dom": "^18.0.1",
90
+ "husky": "^9.0.11",
91
+ "lint-staged": "^15.2.10",
92
+ "prettier": "^3.3.2",
93
+ "typescript": "^5.5.4",
94
+ "vite": "^7.1.4",
95
+ "vitest": "^3.2.4"
96
+ },
97
+ "lint-staged": {
98
+ "*.{ts,tsx,js,jsx}": [
99
+ "eslint --fix",
100
+ "prettier --write"
101
+ ],
102
+ "*.{json,md,css,scss,html,yml,yaml}": [
103
+ "prettier --write"
104
+ ]
105
+ }
106
+ }