diff --git a/src/main/utils/init.ts b/src/main/utils/init.ts index 22401eb..9236505 100644 --- a/src/main/utils/init.ts +++ b/src/main/utils/init.ts @@ -161,14 +161,14 @@ async function initFiles(): Promise { const shouldCopyToWork = !existsSync(targetPath) || (await isSourceNewer(sourcePath, targetPath)) if (shouldCopyToWork) { - await cp(sourcePath, targetPath, { recursive: true }) + await cp(sourcePath, targetPath, { recursive: true, force: true }) } } if (existsSync(sourcePath)) { const shouldCopyToTest = !existsSync(testTargetPath) || (await isSourceNewer(sourcePath, testTargetPath)) if (shouldCopyToTest) { - await cp(sourcePath, testTargetPath, { recursive: true }) + await cp(sourcePath, testTargetPath, { recursive: true, force: true }) } } } catch (error) {