draw-libre 0.6.0 → 1.0.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/README.md +156 -111
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +672 -65
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +22 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "draw-libre",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Draw a line/polygon on a maplibre or mapbox map",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -8,10 +8,17 @@
|
|
|
8
8
|
"build": "tsup",
|
|
9
9
|
"build:w": "tsup --watch",
|
|
10
10
|
"dev": "tsc -w",
|
|
11
|
-
"
|
|
11
|
+
"debug": "vite --port 5174 --strictPort",
|
|
12
|
+
"lint": "tsc && tsc -p tsconfig.e2e.json",
|
|
13
|
+
"types:consumer": "tsc -p tsconfig.consumer.json && node scripts/check-consumers.mjs",
|
|
12
14
|
"prettier": "prettier --write .",
|
|
13
|
-
"exports": "attw --pack .",
|
|
14
|
-
"
|
|
15
|
+
"exports": "attw --pack . --entrypoints . --ignore-rules cjs-resolves-to-esm",
|
|
16
|
+
"test": "npm run test:unit && npm run test:e2e",
|
|
17
|
+
"test:unit": "vitest run",
|
|
18
|
+
"pretest:e2e": "tsup",
|
|
19
|
+
"test:e2e": "playwright test",
|
|
20
|
+
"test:e2e:ui": "playwright test --ui",
|
|
21
|
+
"ci": "npm run lint && npm run prettier && npm run build && npm run exports && npm run types:consumer && npm run test",
|
|
15
22
|
"release": "npm run ci",
|
|
16
23
|
"prepublishOnly": "npm run ci"
|
|
17
24
|
},
|
|
@@ -46,11 +53,19 @@
|
|
|
46
53
|
}
|
|
47
54
|
},
|
|
48
55
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
56
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
57
|
+
"@maplibre/maplibre-gl-style-spec": "^26.4.4",
|
|
58
|
+
"@playwright/test": "^1.63.0",
|
|
59
|
+
"@types/geojson": "^7946.0.16",
|
|
60
|
+
"@types/node": "^22.20.2",
|
|
61
|
+
"@vitest/browser-playwright": "^5.0.0",
|
|
62
|
+
"maplibre-gl": "^6.9.1",
|
|
63
|
+
"playwright": "^1.63.0",
|
|
51
64
|
"prettier": "3.2.5",
|
|
52
65
|
"tsup": "8.2.2",
|
|
53
|
-
"typescript": "5.
|
|
66
|
+
"typescript": "5.9.3",
|
|
67
|
+
"vite": "^8.3.0",
|
|
68
|
+
"vitest": "^5.0.0"
|
|
54
69
|
},
|
|
55
70
|
"main": "dist/index.js",
|
|
56
71
|
"browser": "dist/index.js",
|