json: preserve order of props from TS defs

This commit is contained in:
Olivier Chafik 2024-03-11 11:48:08 +00:00
parent e1ed7a04d6
commit b816734c17

View file

@ -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