Skip to content

Commit 9f113bd

Browse files
authored
Merge pull request #4386 from duncanbeevers/remove-yaml2json
Remove yaml2json
2 parents 5c8ce0e + 8a2e070 commit 9f113bd

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

Diff for: 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")

Diff for: scripts/yaml2json/yaml2json.js

-30
This file was deleted.

0 commit comments

Comments
 (0)