From d0e455c9a65064f2e0df91ef5a324aa2f4cd060a Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Thu, 12 Dec 2024 18:46:20 +0800 Subject: [PATCH] Sort props alphabetically in generated props json --- scripts/buildApiDocs/buildReference.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildApiDocs/buildReference.ts b/scripts/buildApiDocs/buildReference.ts index 621928eada..ccead4ff8a 100644 --- a/scripts/buildApiDocs/buildReference.ts +++ b/scripts/buildApiDocs/buildReference.ts @@ -93,7 +93,7 @@ export async function buildReference() { const json: ComponentDef = { name: componentData.name, description: descriptionData.componentDescription, - props, + props: Object.fromEntries(Object.entries(props).sort()), dataAttributes, cssVariables, };