The reason this is happening, is because tsdx insists on deleting the folder, rather than emptying it. If it didn't have to delete the actual folder itself, it wouldn't matter if it's open or in use or whatnot.
Additional context
This is easily reproducible on Windows by opening an additional command prompt in the dist folder. There are other scenarios where this error might occur, but this is one way to reproduce it reliably.
Current Behavior
When the
dist
folder is in use, it explodes like that:Expected behavior
No error. Honestly, just bare with me 😀
Suggested solution(s)
The reason this is happening, is because tsdx insists on deleting the folder, rather than emptying it. If it didn't have to delete the actual folder itself, it wouldn't matter if it's open or in use or whatnot.
Additional context
This is easily reproducible on Windows by opening an additional command prompt in the
dist
folder. There are other scenarios where this error might occur, but this is one way to reproduce it reliably.Your environment
^ and Firefox.