Skip to content

Commit

Permalink
fix: pass flags to copyFile (#100)
Browse files Browse the repository at this point in the history
This prevents an error when running `hexo deploy` using the Heroku deployer, and gets us one step closer to being able to deploy Hexo blogs to Heroku:

`err: TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object`
  • Loading branch information
tomizechsterson authored Aug 20, 2022
1 parent 261daad commit c89e5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async function _copyDirWalker(
return _copyDirWalker(childSrc, childDest, results, currentPath, options);
}
results.push(currentPath);
return copyFile(childSrc, childDest);
return copyFile(childSrc, childDest, 0);
});
}

Expand Down

0 comments on commit c89e5bc

Please sign in to comment.