Skip to content

Commit

Permalink
fix: #461 Generating docs fails if project is a git repository (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
freakfan15 authored Nov 1, 2023
1 parent 163ff07 commit 7b2ce83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export default async (spec, config, resDir) => {
path.resolve(
resDir ? resDir : './',
configData?.folder ? configData.folder : 'docs'
)
),
{ forceWrite: true }
)
try {
await generator.generateFromString(JSON.stringify(resolvedData))
Expand Down

0 comments on commit 7b2ce83

Please sign in to comment.