@vertekum/schema-builder 0.4.0 → 0.6.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/CHANGELOG.md +14 -0
- package/package.json +3 -3
- package/src/cli.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @vertekum/schema-builder
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`f5900fe`](https://github.com/moros-oxus/vertekum/commit/f5900fe07b46dfea7cf5e6fd23b2a31e4b8cc512)]:
|
|
8
|
+
- @vertekum/core@0.6.0
|
|
9
|
+
|
|
10
|
+
## 0.5.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`739344f`](https://github.com/moros-oxus/vertekum/commit/739344ffe4d80a9af1a6d503f2763714be62e8b8)]:
|
|
15
|
+
- @vertekum/core@0.5.0
|
|
16
|
+
|
|
3
17
|
## 0.4.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertekum/schema-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Declare token vocabularies as grammar; build them into JSON Schema files",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"./cli": "./src/cli.ts"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@vertekum/core": "0.
|
|
40
|
+
"@vertekum/core": "0.6.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"zod": "^3.25.76"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vertekum/core": "0.
|
|
46
|
+
"@vertekum/core": "0.6.0",
|
|
47
47
|
"@vertekum/schema-vocabulary": "0.3.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/cli.ts
CHANGED
|
@@ -378,6 +378,13 @@ export const schemaFmtCommand: CommandDescriptor = {
|
|
|
378
378
|
export const schemaBuildCommand: CommandDescriptor = {
|
|
379
379
|
name: 'schema build',
|
|
380
380
|
description: 'build .dfn vocabulary modules into JSON Schema files',
|
|
381
|
+
// A generator: `vertekum watch` reruns it when a `.dfn` under the configured source changes,
|
|
382
|
+
// before the tokens held to the built schemas are checked and exported.
|
|
383
|
+
generator: {
|
|
384
|
+
reads: (ctx) => [
|
|
385
|
+
join((ctx.project as ProjectDir).projectDir, settingsOf(ctx).source),
|
|
386
|
+
],
|
|
387
|
+
},
|
|
381
388
|
args: [
|
|
382
389
|
{
|
|
383
390
|
name: 'module',
|