I have the following code which is working fine in Windows:
await zip.addLocalFolderPromise(path.join(import.meta.dir, "docker_compose"), {zipPath: "docker_compose"})
await zip.writeZipPromise(path.join(import.meta.dir, "..", "assets", "docker_compose.zip"), {overwrite: true})
It adds all the files from the docker_compose directory relative to the script. On Windows this is working, however when I run it on my Ubuntu WSL it creates an empty zip.