Skip to content

Replace various packages with faster, smaller alternatives #171

Open
@beeequeue

Description

@beeequeue

Hi, would you be open to a PR that replaces some of the libraries used in this package with faster, smaller alternatives?

The ones I have my eyes on are:

  • ansi-styles -> ansis
  • read-package-json-fast -> empathic + JSON.parse(readFileSync)
    • allows for finding manifests above the exact current working directory
    • the package doesn't really use any features from read-package-json-fast except opening+parsing the file
    • 22kb -> 18kb
  • minimatch -> picomatch
  • cross-spawn -> tinyexec / nano-spawn
    • would require upping minimum node version to >=20.19
    • more modern
    • 35kb -> 27kb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions