WiseLibs / better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.
MIT License
5.37k stars 394 forks source link

Fix: Create target directory when copying #1030

Closed felixrieseberg closed 1 year ago

felixrieseberg commented 1 year ago

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.