Update ts-type-to-grammar.sh

This commit is contained in:
ochafik 2024-03-10 15:44:51 +00:00
parent 5764d9ffbc
commit 364bf9ec3d

View file

@ -21,6 +21,6 @@ echo "export type MyType = $type" > "$DTS_FILE"
# npx typescript-json-schema --defaultProps --required "$DTS_FILE" MyType | tee "$SCHEMA_FILE" >&2
# https://github.com/vega/ts-json-schema-generator
npx ts-json-schema-generator --path "$DTS_FILE" --type MyType -e none | tee "$SCHEMA_FILE" >&2
npx ts-json-schema-generator --no-top-ref --path "$DTS_FILE" --type MyType -e none | tee "$SCHEMA_FILE" >&2
./examples/json-schema-to-grammar.py "$SCHEMA_FILE"