Skip to content

Commit 3ef74ca

Browse files
committed
Move version to jsonschema.json
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 19c98a5 commit 3ef74ca

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ RMRF ?= rm -rf
1313
SCHEMAS = $(shell find schemas/ -type f -name '*.json')
1414
TESTS = $(shell find test/ -type f -name '*.json')
1515

16-
# TODO: Add a version property to `jsonschema.json`
17-
VERSION = $(shell tr -d '\n\r' < VERSION)
18-
1916
include generated.mk
2017

2118
# TODO: Make `jsonschema fmt` automatically detect test files
@@ -46,6 +43,7 @@ test:
4643

4744
# TODO: Add a `jsonschema pkg` command instead
4845
.PHONY: dist
46+
VERSION = $(shell jq --raw-output '.["x-version"]' jsonschema.json)
4947
dist:
5048
$(RMRF) $@
5149
$(MKDIRP) $@

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

jsonschema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"description": "A growing collection of hand-crafted high-quality schemas by Sourcemeta",
44
"email": "[email protected]",
55
"github": "sourcemeta/std",
6-
"path": "./schemas"
6+
"path": "./schemas",
7+
"x-version": "0.2.0"
78
}

0 commit comments

Comments
 (0)