For various complicated reasons, I have to build better-sqlite3 with an empty build/Release folder. If that's the case, copy.js will fail to create directories before attempting to copy files, which will in turn fail.
This PR ensures that we create target directories before copying files.
For various complicated reasons, I have to build
better-sqlite3
with an emptybuild/Release
folder. If that's the case,copy.js
will fail to create directories before attempting to copy files, which will in turn fail.This PR ensures that we create target directories before copying files.