Skip to content

Commit

Permalink
chore(docs): show kebab cased props
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Apr 28, 2023
1 parent c47e9ed commit 80f4a57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/docs/modules/page-config/blocks/api/transform.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 80f4a57

Please sign in to comment.