Skip to content

Correctly replace the node_modules folder in the ignore list #49

@bbenoist

Description

@bbenoist

This line is preventing me to exclude the common/temp/node_modules directory of my monorepo and any "subproject" node_modules directory 😢

e.g. If I md-magic --path '**/*.md' --ignore 'common/temp/node_modules/**', the tool tries to modify its own examples because it finds it in the common/temp/node_modules directory (which is the global store for every dependency of the monorepo).

Is it possible to replace it with something more robust? Maybe just use !**/node_modules/** (⚠️ if it works)?

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