Skip to content

[Feature request] Pattern matching for exclude #611

@jakes-space

Description

@jakes-space

How are you using generate-license-file?
CLI

Is your feature request related to a problem? Please describe.
I have a large pnpm monorepo and wish to exclude all its private packages from the license file. Currently I need to enumerate each one.

Describe the solution you'd like
I'd like be able to specify exclude: ["@my-org/*"]. I'm agnostic as to glob vs RE matching.

Additional context
Looks like it would be an easy addition to ./src/packages/generate-license-file/src/lib/internal/resolveDependencies/resolveNpmDependencies.ts. I'd probably go with glob matching and using the Minimatch npm. Happy to send over a PR if that sounds good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions