minimatch

How to specify multiple matches in minimatch


I need to target specific files using minimatch (in TypeDoc exclude - I don't need tests and some other files).

I need to exclude all files from /test directory and all index.ts in all directories

Tried **/+(index.ts|**/test/*.ts) but it doesn't work.


Solution

  • Try **/!(test)/!(index)*.ts using globster.xyz