Skip to content

Commit 1cefa04

Browse files
committed
fix: allow not overwriting files
1 parent 8e12619 commit 1cefa04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/check-project/utils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ export async function ensureFileHasContents (projectDir, filePath, expectedConte
107107
})
108108

109109
if (!overwriteFile) {
110-
throw new Error(`Not overwriting ${filePath} file`)
110+
console.warn(kleur.yellow(`Not overwriting ${filePath} file`))
111+
return
111112
}
112113

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

0 commit comments

Comments
 (0)