Skip to content

Replace rimraf with native Node.js fs.promises #838

@quirogas

Description

@quirogas

Replace rimraf with native Node.js fs.promises

Description

Currently, we use rimraf in the following location:

We should replace this dependency for the following reasons:

  • Environment: These tests only run on Ubuntu, so we do not strictly need to leverage a package designed for cross-platform directory deletion.
  • Security: rimraf currently has a vulnerability due to its dependency on glob 10.4.5.

Proposed Solution

A simpler and more secure solution is to use Node's native fs promise to delete the directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    size: sPull request size is small.type: processA process-related concern. May include testing, release, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions