vladshcherbin / rollup-plugin-copy

Copy files and folders using Rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First directory stripped when flatten is false

LarsDenBakker opened this issue · comments

Followup from #36

The new flatten option when set to false doesn't work as expected. The first directory is stripped so the new directory structure doesn't represent the original directory structure.

A workaround is to add the directory name manually in the destination, but that doesn't work if the parent directory is a glob as well.

@vladshcherbin would you accept a PR to fix this?

@LarsDenBakker sure, go for it