This repo reproduces an issue where the directory structure of the copied files are not maintained in the destination.
resources
└── views
├── app.edge
└── nested
└── baz.edge
await copyFiles(['resources/views/**/*.edge'], join(BASE_PATH, './build'), {
cwd: BASE_PATH,
})
build
└── resources
└── views
├── app.edge
└── nested
└── baz.edge
build
├── app.edge
└── nested
└── baz.edge