patchcab icon indicating copy to clipboard operation
patchcab copied to clipboard

Why does `npx patchcab` destroy ./modules?

Open aolney opened this issue 3 years ago • 1 comments

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

aolney avatar Jun 29 '22 19:06 aolney

I deleted everything and started over, and the problem still occurs - it is the npx patchcab that triggers it.

aolney avatar Jun 29 '22 23:06 aolney