@urban-toolkit/autk-grammar 0.2.1 → 0.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urban-toolkit/autk-grammar",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "A declarative grammar for urban visual analytics, built on Autark",
5
5
  "license": "MIT",
6
6
  "author": "Gustavo Moreira",
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "type": "module",
13
13
  "files": [
14
- "dist"
14
+ "dist",
15
+ "build"
15
16
  ],
16
17
  "main": "./dist/autk-grammar.umd.cjs",
17
18
  "module": "./dist/autk-grammar.js",
@@ -21,13 +22,15 @@
21
22
  "types": "./dist/index.d.ts",
22
23
  "import": "./dist/autk-grammar.js",
23
24
  "require": "./dist/autk-grammar.umd.cjs"
24
- }
25
+ },
26
+ "./build/autk-grammar-schema.json": "./build/autk-grammar-schema.json"
25
27
  },
26
28
  "scripts": {
27
29
  "doc": "typedoc --options typedoc.json --watch",
28
30
  "dev": "vite",
29
31
  "dev-build": "vite build --watch",
30
- "build": "tsc && vite build",
32
+ "build": "tsc && vite build && npm run schema",
33
+ "schema": "ts-json-schema-generator --path ../../grammar/src/types.ts --type UrbanSpec --tsconfig ../../grammar/tsconfig.schema.json --additional-properties --id https://autarkjs.org/schema/autk-grammar/v1.json --out build/autk-grammar-schema.json",
31
34
  "preview": "vite preview",
32
35
  "lint": "eslint src",
33
36
  "typecheck": "tsc --noEmit",
@@ -42,6 +45,7 @@
42
45
  "eslint-config-prettier": "^10.1.8",
43
46
  "globals": "^16.4.0",
44
47
  "prettier": "^3.6.2",
48
+ "ts-json-schema-generator": "^2.9.0",
45
49
  "ts-loader": "^9.5.4",
46
50
  "typedoc": "^0.28.14",
47
51
  "typedoc-theme-oxide": "^0.2.0",