ftp-deploy
ftp-deploy copied to clipboard
Define `mkDirExists`
When building a project with esbuild 0.18.15 that imports ftp-deploy, and running on Node 16, the program will exit because mkDirExists is not defined.
Unless I am mistaken, I do not see why mkDirExists needs to be an arrow function and most importantly, where the mkDirExists variable is declared before the assignment.
This PR fixes the issue by changing the mkDirExists declaration to respect the style of the other functions above.
This is fixed by #166, see: https://github.com/simonh1000/ftp-deploy/blob/149f6dca75bff65b893fc6c56ed9540e8425b436/src/lib.js#L129
@simonh1000: This PR can be closed.
Thanks for this PR. I missed this at the time, but the change has been made now