UNPKG

leaflet-draw-web-component

Version:

Framework-agnostic Leaflet + Leaflet.draw web component with TypeScript, verbose logging, and tests.

93 lines (92 loc) 2.56 kB
{ "name": "leaflet-draw-web-component", "version": "0.1.0", "description": "Framework-agnostic Leaflet + Leaflet.draw web component with TypeScript, verbose logging, and tests.", "type": "module", "main": "./dist/leaflet-draw-web-component.umd.js", "module": "./dist/leaflet-draw-web-component.es.js", "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", "import": "./dist/leaflet-draw-web-component.es.js", "require": "./dist/leaflet-draw-web-component.umd.js" } }, "files": [ "dist", "README.md", "CHANGELOG.md" ], "sideEffects": [ "**/*.css" ], "scripts": { "dev": "vite", "build": "tsc -p tsconfig.json --emitDeclarationOnly && vite build", "preview": "vite preview", "typecheck": "tsc -p tsconfig.json --noEmit", "lint": "eslint . --ext .ts,.tsx,.js,.jsx", "format": "prettier --write .", "prettier:check": "prettier --check .", "test": "npm run test:unit && npm run test:e2e", "test:unit": "vitest run", "test:unit:watch": "vitest", "test:e2e": "playwright test", "e2e:install": "playwright install --with-deps", "prepare": "husky", "prepack": "npm run build", "pack:dry": "npm pack --dry-run", "release:dry": "npm run typecheck && npm run test:unit && npm run build && npm pack --dry-run" }, "keywords": [ "leaflet", "leaflet-draw", "web-component", "geojson", "preact", "typescript" ], "author": "Schuyler Ankele", "license": "MIT", "engines": { "node": ">=20", "npm": ">=9" }, "dependencies": { "leaflet": "^1.9.4", "leaflet-draw": "^1.0.4", "preact": "^10.24.0", "uuid": "^9.0.1" }, "devDependencies": { "@playwright/test": "^1.47.0", "@preact/preset-vite": "^2.8.0", "@testing-library/dom": "^10.4.0", "@testing-library/preact": "^3.2.4", "@types/geojson": "^7946.0.14", "@types/leaflet": "^1.9.9", "@types/leaflet-draw": "^1.0.10", "@types/node": "^22.0.0", "@typescript-eslint/eslint-plugin": "^8.0.1", "@typescript-eslint/parser": "^8.0.1", "@vitest/coverage-v8": "^3.2.4", "eslint": "^9.9.0", "happy-dom": "^18.0.1", "husky": "^9.0.11", "lint-staged": "^15.2.10", "prettier": "^3.3.2", "typescript": "^5.5.4", "vite": "^7.1.4", "vitest": "^3.2.4" }, "lint-staged": { "*.{ts,tsx,js,jsx}": [ "eslint --fix", "prettier --write" ], "*.{json,md,css,scss,html,yml,yaml}": [ "prettier --write" ] } }