Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does npx patchcab destroy ./modules? #22

Open
aolney opened this issue Jun 29, 2022 · 1 comment
Open

Why does npx patchcab destroy ./modules? #22

aolney opened this issue Jun 29, 2022 · 1 comment

Comments

@aolney
Copy link

aolney commented Jun 29, 2022

Describe the bug

When running npx patchcab, these lines in bin.ts cause my ./modules directory to be destroyed:

const PATH_BUILD = resolve(DIR, './modules');

rimraf.sync(PATH_BUILD);

./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
Copy link
Author

aolney commented Jun 29, 2022

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

@aolney aolney closed this as completed Jun 29, 2022
@aolney aolney reopened this Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant