From b816734c1769e499394acf7365735d80c95a3600 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Mon, 11 Mar 2024 11:48:08 +0000 Subject: [PATCH] json: preserve order of props from TS defs --- examples/ts-type-to-grammar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ts-type-to-grammar.sh b/examples/ts-type-to-grammar.sh index eb571fbd2..db4881f26 100755 --- a/examples/ts-type-to-grammar.sh +++ b/examples/ts-type-to-grammar.sh @@ -19,7 +19,7 @@ echo "export type MyType = $type" > "$DTS_FILE" # 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 +npx ts-json-schema-generator --unstable --no-top-ref --path "$DTS_FILE" --type MyType -e none | tee "$SCHEMA_FILE" >&2 # Alternative, not actively maintained as of March 2024: # https://github.com/YousefED/typescript-json-schema