Skip to content

Commit

Permalink
🐛 Fix replace and deleteOrphaned options (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydobson authored Feb 14, 2022
1 parent 87c67af commit 899abc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17341,8 +17341,8 @@ const parseFiles = (files) => {
return {
source: item.source,
dest: item.dest || item.source,
replace: item.replace || REPLACE_DEFAULT,
deleteOrphaned: item.deleteOrphaned || DELETE_ORPHANED_DEFAULT,
replace: item.replace === undefined ? REPLACE_DEFAULT : item.replace,
deleteOrphaned: item.deleteOrphaned === undefined ? DELETE_ORPHANED_DEFAULT : item.deleteOrphaned,
exclude: parseExclude(item.exclude, item.source)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ const parseFiles = (files) => {
return {
source: item.source,
dest: item.dest || item.source,
replace: item.replace || REPLACE_DEFAULT,
deleteOrphaned: item.deleteOrphaned || DELETE_ORPHANED_DEFAULT,
replace: item.replace === undefined ? REPLACE_DEFAULT : item.replace,
deleteOrphaned: item.deleteOrphaned === undefined ? DELETE_ORPHANED_DEFAULT : item.deleteOrphaned,
exclude: parseExclude(item.exclude, item.source)
}
}
Expand Down

0 comments on commit 899abc4

Please sign in to comment.