Skip to content

Commit

Permalink
Merge pull request #15 from syJSdev/bugfix/minor-fix-for-contents
Browse files Browse the repository at this point in the history
Minor bug fix for #14
  • Loading branch information
syJSdev committed May 9, 2023
2 parents b9d3e87 + 5f4ff12 commit 3860a50
Show file tree
Hide file tree
Showing 3 changed files with 457 additions and 441 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17
14.18
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function copyMerge(options = {}) {
const { src, contents, transformed, merged, dest } = copyTarget;

if (transformed) {
await fs.outputFile(dest, contents);
if (contents) await fs.outputFile(dest, contents);
} else if (merged) {
if (contents) await fs.outputFile(dest, contents);
} else {
Expand Down
Loading

0 comments on commit 3860a50

Please sign in to comment.