Skip to content

Commit b512902

Browse files
committed
Install JSON Schema CLI using package.json
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent b82d1a0 commit b512902

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ jobs:
8787
env:
8888
HOMEBREW_NO_ANALYTICS: 1
8989
HOMEBREW_NO_AUTO_UPDATE: 1
90-
- run: npm install --global jsonschema
9190
- run: npm ci
9291
- run: cmake --version
9392
- name: Configure Codegen (static)

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ endif()
7171
# Testing
7272
if(CODEGEN_TESTS)
7373
enable_testing()
74-
find_program(JSONSCHEMA_BIN NAMES jsonschema REQUIRED)
7574

7675
if(CODEGEN_IR)
7776
add_subdirectory(test/ir)
@@ -91,6 +90,7 @@ if(CODEGEN_TESTS)
9190
endif()
9291

9392
add_custom_target(jsonschema_metaschema
94-
COMMAND "${JSONSCHEMA_BIN}" metaschema ${E2E_SCHEMAS}
93+
COMMAND "${PROJECT_SOURCE_DIR}/node_modules/.bin/jsonschema"
94+
metaschema ${E2E_SCHEMAS}
9595
VERBATIM)
9696
endif()

package-lock.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"author": "Sourcemeta",
66
"license": "AGPL-3.0",
77
"devDependencies": {
8+
"@sourcemeta/jsonschema": "^14.0.3",
89
"typescript": "^5.9.3"
910
}
1011
}

0 commit comments

Comments
 (0)