Skip to content

Removing glob dependency #623

@benmccann

Description

@benmccann

glob is responsible for 26 out of 37 dependencies for this library: https://npmgraph.js.org/?q=json-schema-to-typescript. I'd love to see if we can find a way to reduce that.

A few options I can think of:

  • Replace it with fdir (1M downloads / wk) and picomatch (50m downloads / wk)
  • I originally proposed replacing it with tinyglobby in Use tinyglobby for globbing #622. See that PR for the full background and additional details regarding this issue
  • Split this package into CLI and core. The CLI could retain the name json-schema-to-typescript and re-export the stuff contained in core, so that users could continue to install just the one package they need and the change could be made in a backwards-compatible fashion. This would also remove other packages like minimist and is-glob from the core dependencies as well

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions