@maplibre-yaml/core 0.2.2 → 0.3.0-alpha.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/LICENSE.md +21 -0
- package/README.md +44 -16
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +197 -73
- package/dist/components/index.js.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.js +207 -94
- package/dist/index.js.map +1 -1
- package/dist/{map-renderer-SjO3KQmx.d.ts → map-renderer-4FF3EmBO.d.ts} +130 -3
- package/dist/register.browser.js +6029 -7035
- package/dist/register.browser.js.map +1 -1
- package/dist/register.d.ts +1 -1
- package/dist/register.js +197 -73
- package/dist/register.js.map +1 -1
- package/dist/schemas/index.js +24 -2
- package/dist/schemas/index.js.map +1 -1
- package/package.json +17 -12
- package/register.js +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplibre-yaml/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.0",
|
|
4
4
|
"description": "Core library for declarative MapLibre maps with YAML",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"types": "./dist/register.d.ts",
|
|
16
16
|
"import": "./dist/register.js"
|
|
17
17
|
},
|
|
18
|
+
"./register.browser": {
|
|
19
|
+
"types": "./dist/register.d.ts",
|
|
20
|
+
"import": "./dist/register.browser.js"
|
|
21
|
+
},
|
|
18
22
|
"./schemas": {
|
|
19
23
|
"types": "./dist/schemas/index.d.ts",
|
|
20
24
|
"import": "./dist/schemas/index.js"
|
|
@@ -26,17 +30,9 @@
|
|
|
26
30
|
},
|
|
27
31
|
"files": [
|
|
28
32
|
"dist",
|
|
33
|
+
"register.js",
|
|
29
34
|
"README.md"
|
|
30
35
|
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "tsup",
|
|
33
|
-
"dev": "tsup --watch",
|
|
34
|
-
"test": "vitest run",
|
|
35
|
-
"test:watch": "vitest",
|
|
36
|
-
"test:coverage": "vitest run --coverage",
|
|
37
|
-
"typecheck": "tsc --noEmit",
|
|
38
|
-
"clean": "rm -rf dist *.tsbuildinfo"
|
|
39
|
-
},
|
|
40
36
|
"dependencies": {
|
|
41
37
|
"maplibre-gl": "^4.1.0",
|
|
42
38
|
"yaml": "^2.4.0",
|
|
@@ -80,5 +76,14 @@
|
|
|
80
76
|
"bugs": {
|
|
81
77
|
"url": "https://github.com/design-practices/maplibre-yaml/issues"
|
|
82
78
|
},
|
|
83
|
-
"homepage": "https://github.com/design-practices/maplibre-yaml#readme"
|
|
84
|
-
|
|
79
|
+
"homepage": "https://github.com/design-practices/maplibre-yaml#readme",
|
|
80
|
+
"scripts": {
|
|
81
|
+
"build": "tsup",
|
|
82
|
+
"dev": "tsup --watch",
|
|
83
|
+
"test": "vitest run",
|
|
84
|
+
"test:watch": "vitest",
|
|
85
|
+
"test:coverage": "vitest run --coverage",
|
|
86
|
+
"typecheck": "tsc --noEmit",
|
|
87
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
88
|
+
}
|
|
89
|
+
}
|
package/register.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Top-level re-export so unpkg's bare `/register` URL resolves. unpkg
|
|
2
|
+
// ignores package.json `exports` for subpaths; npm/Vite/Webpack consumers
|
|
3
|
+
// use the `./register` exports mapping and never touch this file.
|
|
4
|
+
// Points at the browser build (yaml + zod inlined) so a plain
|
|
5
|
+
// `<script type="module">` can load it — its only bare specifier is
|
|
6
|
+
// `maplibre-gl`, which the documented import map provides.
|
|
7
|
+
// See issue #33 / changeset for full context.
|
|
8
|
+
export * from "./dist/register.browser.js";
|