You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to select files that have the ending Ctrl.js, this is like a inclusion pattern or the complement of the exclusion '**/*Ctrl.ts' which does work. When I execute the inclusion pattern, no data is exported. However, if I execute:
This does work because is not showing files with ending Ctrl.ts. So, I want to get the complement of this but when I try to use negation operation (!), it doesn't display anything.
I already searched in different places the solution but I haven't had luck.
Environment
Typedoc version: 0.19.2
TypeScript version: 4.0.5
Node.js version: 12.18.4
OS: Mac OS Big Sur
The text was updated successfully, but these errors were encountered:
Ah, that makes a whole lot more sense now! My test case didn't have an extra directory, which made all the difference.
What TypeDoc is doing:
Expand imports/api - getting each of the folders within that
Loop over each folder, checking imports/api/FOLDER against the exclude pattern - this matches since it doesn't end in Ctrl.ts, and each folder is marked as excluded
The first obvious fix for this is only checking exclude patterns on files - but that potentially causes other issues since the pattern node_modules would no longer exclude anything in that folder... I think I'm okay with this, especially with the changes in 0.20 which will result in --exclude not being used as frequently.
Search terms
inclusion patterns, negated, complement
Expected Behavior
I expect to select files which have an ending of 'Ctrl.ts' using negation operator in --exclude flag.
Actual Behavior
The "!" operator does not seem to be working. I am using the next command:
And directory structure is the following:
I am trying to select files that have the ending Ctrl.js, this is like a inclusion pattern or the complement of the exclusion '**/*Ctrl.ts' which does work. When I execute the inclusion pattern, no data is exported. However, if I execute:
This does work because is not showing files with ending Ctrl.ts. So, I want to get the complement of this but when I try to use negation operation (!), it doesn't display anything.
I already searched in different places the solution but I haven't had luck.
Environment
The text was updated successfully, but these errors were encountered: