From 80f4a57c845af90f958856a01d4dcf41d7868b86 Mon Sep 17 00:00:00 2001 From: Maksim Nedoshev Date: Fri, 28 Apr 2023 12:40:11 +0300 Subject: [PATCH] chore(docs): show kebab cased props --- packages/docs/modules/page-config/blocks/api/transform.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/docs/modules/page-config/blocks/api/transform.ts b/packages/docs/modules/page-config/blocks/api/transform.ts index 812c377956..1ce3828903 100644 --- a/packages/docs/modules/page-config/blocks/api/transform.ts +++ b/packages/docs/modules/page-config/blocks/api/transform.ts @@ -1,4 +1,3 @@ -import pick from 'lodash/pick.js'; import kebabCase from 'lodash/kebabCase'; import { readFile } from 'fs/promises'; import { defineBlockTransform } from "../../compiler/define-block-transform"; @@ -39,7 +38,7 @@ const stringifyMeta = (meta: ComponentMeta) => { .sort((prop1, prop2) => Number(prop1.required) > Number(prop2.required) ? -1 : 1) .reduce((acc, prop) => ({ ...acc, - [prop.name]: ({ + [kebabCase(prop.name)]: ({ types: prop.type.replace(' | undefined', ''), default: prop.default, required: prop.required,