@opengeospatial/jsonld-ui-utils 0.2.0 → 0.2.7

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 CHANGED
@@ -1,16 +1,21 @@
1
1
  {
2
2
  "name": "@opengeospatial/jsonld-ui-utils",
3
- "version": "0.2.0",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "browser": "dist/jsonld-ui-utils.min.js",
8
8
  "exports": {
9
- "import": "./dist/index.esm.js",
10
- "require": "./dist/index.cjs.js"
9
+ ".": {
10
+ "import": "./dist/index.esm.js",
11
+ "require": "./dist/index.cjs.js"
12
+ },
13
+ "./leaflet": {
14
+ "import": "./dist/leaflet.esm.js",
15
+ "require": "./dist/leaflet.cjs.js"
16
+ }
11
17
  },
12
18
  "dependencies": {
13
- "jsonld": "^8.3.2",
14
19
  "n3": "^1.23.1",
15
20
  "rdfxml-streaming-parser": "^2.4.0"
16
21
  },
@@ -23,9 +28,9 @@
23
28
  "@rollup/plugin-node-resolve": "^16.0.3",
24
29
  "@rollup/plugin-typescript": "^12.3.0",
25
30
  "@types/jsonld": "^1.5.15",
31
+ "jsonld": "^8.3.2",
26
32
  "@types/n3": "^1.21.1",
27
33
  "baseline-browser-mapping": "^2.10.10",
28
- "core-js": "^3.46.0",
29
34
  "rollup": "^4.53.2",
30
35
  "rollup-plugin-polyfill-node": "^0.13.0",
31
36
  "rollup-plugin-terser": "^7.0.2",
@@ -34,12 +39,29 @@
34
39
  "vite": "^7.2.2"
35
40
  },
36
41
  "scripts": {
37
- "build": "rollup -c",
42
+ "build": "rollup -c && cp src/jsonld-ui-utils.css dist-local/",
43
+ "build:release": "BUILD_DIR=dist rollup -c && cp src/jsonld-ui-utils.css dist/",
38
44
  "dev": "vite --open",
39
45
  "preview": "vite preview",
40
- "prepare": "if [ \"$YARN_IGNORE_PREPARE\" != \"true\" ]; then rollup -c; fi"
46
+ "prepare": "if [ \"$YARN_IGNORE_PREPARE\" != \"true\" ]; then BUILD_DIR=dist rollup -c && cp src/jsonld-ui-utils.css dist/; fi",
47
+ "version": "yarn build:release && sed -i -e \"s|cdn.jsdelivr.net/gh/avillar/jsonld-ui-utils@v[0-9.]*|cdn.jsdelivr.net/gh/avillar/jsonld-ui-utils@v$npm_package_version|g\" -e \"s|github:avillar/jsonld-ui-utils#v[0-9.]*|github:avillar/jsonld-ui-utils#v$npm_package_version|g\" README.md && git add dist/ README.md"
48
+ },
49
+ "peerDependencies": {
50
+ "jsonld": ">=8.0.0",
51
+ "leaflet": ">=1.0.0"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "jsonld": {
55
+ "optional": true
56
+ },
57
+ "leaflet": {
58
+ "optional": true
59
+ }
60
+ },
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "https://github.com/ogcincubator/jsonld-ui-utils"
41
64
  },
42
- "peerDependencies": {},
43
65
  "files": [
44
66
  "dist/"
45
67
  ]