From 7b2ce83ed6a412c99df2cb4cba669066dd8a86eb Mon Sep 17 00:00:00 2001 From: Vivek Kumar <54408801+freakfan15@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:20:59 +0530 Subject: [PATCH] fix: #461 Generating docs fails if project is a git repository (#559) --- src/lib/docs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/docs.ts b/src/lib/docs.ts index 341d3b914..584304509 100644 --- a/src/lib/docs.ts +++ b/src/lib/docs.ts @@ -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))