bug: Copy tasks leads to EBUSY: resource busy or locked on Windows OR flattened structure on Mac #5966
Closed
3 tasks done
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
4.21.0
Current Behavior
When we have a copy task for
<subfolder>
for thedist
buildTarget, to../<subfolder>
, we get an error on Windows. On Mac, the structure gets flattened. The folder structure is lost.Expected Behavior
I expect the assets folder to be copied as is. And I expect to be able to copy it to one folder higher than the dist folder.
System Info
Steps to Reproduce
Create a Stencil project version 4.21.0
Create an assets folder in src
Create a subfolder in the assets folder
Add a copytask to the dist buildTarget with
copy: [{ src: 'assets', dest: '../assets', warn: true }]
Run
npm run build
On Windows, it leads to an EBUSY error (reverting to 4.20.0 resolves the issue)
On Mac, it leads to all the folders contents to be flattened, i.e. the folder structure in src is lost in the build.
Code Reproduction URL
https://github.com/DrKlonk/stencil-copy-bug
Additional Information
Related to, but different from #5956
The text was updated successfully, but these errors were encountered: