From 8597caa685ce7fe60904c772246b6a68cc75654b Mon Sep 17 00:00:00 2001 From: ochafik Date: Sun, 10 Mar 2024 15:47:03 +0000 Subject: [PATCH] Update ts-type-to-grammar.sh --- examples/ts-type-to-grammar.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/ts-type-to-grammar.sh b/examples/ts-type-to-grammar.sh index bc13c547d..efdccfd63 100755 --- a/examples/ts-type-to-grammar.sh +++ b/examples/ts-type-to-grammar.sh @@ -17,10 +17,13 @@ SCHEMA_FILE="$TMPDIR/schema.json" echo "export type MyType = $type" > "$DTS_FILE" -# https://github.com/YousefED/typescript-json-schema -# npx typescript-json-schema --defaultProps --required "$DTS_FILE" MyType | tee "$SCHEMA_FILE" >&2 +# This is a fork of typescript-json-schema, actively maintained as of March 2024: # https://github.com/vega/ts-json-schema-generator npx ts-json-schema-generator --no-top-ref --path "$DTS_FILE" --type MyType -e none | tee "$SCHEMA_FILE" >&2 +# Not actively maintained: +# https://github.com/YousefED/typescript-json-schema +# npx typescript-json-schema --defaultProps --required "$DTS_FILE" MyType | tee "$SCHEMA_FILE" >&2 + ./examples/json-schema-to-grammar.py "$SCHEMA_FILE" \ No newline at end of file