Skip to content

Commit 8a2e070

Browse files
committed
Remove yaml2json
1 parent 5c8ce0e commit 8a2e070

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

scripts/schema-publish.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,9 @@ publish_schema() {
3232
local target=$deploydir/$base/$date
3333

3434
mkdir -p $deploydir/$base
35-
# replace the WORK-IN-PROGRESS placeholders
36-
sed -e $sedCmd $schemaDir/$schema > $target.yaml
3735

38-
node scripts/yaml2json/yaml2json.js "$target.yaml"
39-
rm "$target.yaml"
40-
mv "$target.json" "$target"
36+
# replace the WORK-IN-PROGRESS placeholders
37+
sed ${sedCmd[@]} $schemaDir/$schema | npx yaml --json --indent 2 --single > $target
4138

4239
# Find the jekyll lander markdown file for this iteration.
4340
local jekyllLander=$(find "$deploydir/$base" -maxdepth 1 -name "*.md")

scripts/yaml2json/yaml2json.js

-30
This file was deleted.

0 commit comments

Comments
 (0)