patchcab
patchcab copied to clipboard
Why does `npx patchcab` destroy ./modules?
Describe the bug
When running npx patchcab, these lines in bin.ts cause my ./modules directory to be destroyed:
https://github.com/spectrome/patchcab/blob/0fdb815e35542f798e8b74499ac125a11ea65e6a/core/src/bin/bin.ts#L28
https://github.com/spectrome/patchcab/blob/0fdb815e35542f798e8b74499ac125a11ea65e6a/core/src/bin/bin.ts#L36
./modules seems to be a source directory - why is it being deleted?
To Reproduce
- git clone
- yarn install
- npm run build
- npx patchcab
Environment:
- Ubuntu 20.04
- vscode
I deleted everything and started over, and the problem still occurs - it is the npx patchcab that triggers it.