Skip to content

Commit

Permalink
feat: support markdownDescription on package.json (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn authored Oct 16, 2024
1 parent fd12c90 commit c501ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function generateMarkdown(packageJson: any) {
const defaultVal = defaultValFromSchema(value) || ''
return [
`\`${key}\``,
value?.description || '',
value?.description || values?.markdownDescription || '',

Check failure on line 80 in src/index.ts

View workflow job for this annotation

GitHub Actions / typecheck

Cannot find name 'values'. Did you mean 'value'?

Check failure on line 80 in src/index.ts

View workflow job for this annotation

GitHub Actions / test (lts/*, ubuntu-latest)

Cannot find name 'values'. Did you mean 'value'?

Check failure on line 80 in src/index.ts

View workflow job for this annotation

GitHub Actions / test (lts/*, windows-latest)

Cannot find name 'values'. Did you mean 'value'?

Check failure on line 80 in src/index.ts

View workflow job for this annotation

GitHub Actions / test (lts/*, macos-latest)

Cannot find name 'values'. Did you mean 'value'?
`\`${String(value.type)}\``,
defaultVal.length < MAX_TABLE_COL_CHAR ? `\`${defaultVal}\`` : 'See package.json',
]
Expand Down

0 comments on commit c501ae5

Please sign in to comment.