Skip to content

Please add { dot: true, matchBase: true } to minimatch options #35

Closed
@phil-lgr

Description

@phil-lgr

Steps to reproduce this issue:

Set excluded_globs: "**/node_modules/**,**/dist/**,**/lib/**,**/built/**,**/public/**,**/.cache/**" to exclude nested files in a monorepo

Like this

      - name: Update diagram
        uses: githubocto/repo-visualizer@main
        with:
          commit_message: "chore(core): update diagram"
          output_file: "docs/assets/images/core-repo-diagram.svg"
          excluded_globs: "**/node_modules/*,**/dist/*,**/lib/*,**/built/*,**/public/*,**/.cache/*"
          excluded_paths: "node_modules,dist,lib,built,.cache,public,out,build,.yarn,.vscode,package-lock.json,yarn.lock"

Expected

E.g. files inside /packages/*/.cache are ignored

Actual behavior

files inside /packages/*/.cache are not ignored by minimatch


There is a bunch of bugs with the default minimatch options

Minimatch options:

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions