Skip to content

Commit

Permalink
fix: allow not overwriting files
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 16, 2023
1 parent 8e12619 commit 1cefa04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/check-project/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export async function ensureFileHasContents (projectDir, filePath, expectedConte
})

if (!overwriteFile) {
throw new Error(`Not overwriting ${filePath} file`)
console.warn(kleur.yellow(`Not overwriting ${filePath} file`))
return
}

fs.mkdirSync(path.dirname(path.join(projectDir, filePath)), {
Expand Down

0 comments on commit 1cefa04

Please sign in to comment.