diff --git a/src/cli/tasks/extract.task.ts b/src/cli/tasks/extract.task.ts index 4bc2ef7..20a8a8a 100644 --- a/src/cli/tasks/extract.task.ts +++ b/src/cli/tasks/extract.task.ts @@ -73,7 +73,7 @@ export class ExtractTask implements TaskInterface { // Save try { let event = 'CREATED'; - if (!fs.existsSync(outputPath)) { + if (fs.existsSync(outputPath)) { this.options.replace ? event = 'REPLACED' : event = 'MERGED'; } this.save(outputPath, final);