Skip to content

Why does npx patchcab destroy ./modules? #22

@aolney

Description

@aolney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions