As from the Minimatch documentation, it should be possible to use ! at the beginning of the pattern to negate that. Same works for # which can deactivate the whole pattern.
The issue has been introduced in #742 here.
Expected Behavior
- Exclude patterns starting with
! (e.g. !src/**/api.ts, !/home/user/src/**/api.ts) should exclude everything except the glob following after that.
- Exclude patterns starting with
# (e.g. #src/**/api.ts) should do nothing.
Actual Behavior
- Exclude patterns starting with
! (e.g. !src/**/api.ts) are being treated as relative paths (/home/user/projects/!src/**/api.ts).
- Exclude patterns starting with
# (e.g. #src/**/api.ts) are being treated as relative paths (/home/user/projects/#src/**/api.ts).
Steps to reproduce the bug
Use patterns with the negation in your typedoc configuration:
"typedocOptions": {
"exclude": "!**/*.mock.ts",
"externalPattern": "!src/**/*.ts",
"excludeExternals": true
}
Environment
- Typedoc version:
v0.14.0; v0.14.1; v0.14.2; v0.15.0-0
- Node.js version: any
- OS: any
As from the Minimatch documentation, it should be possible to use
!at the beginning of the pattern to negate that. Same works for#which can deactivate the whole pattern.The issue has been introduced in #742 here.
Expected Behavior
!(e.g.!src/**/api.ts,!/home/user/src/**/api.ts) should exclude everything except the glob following after that.#(e.g.#src/**/api.ts) should do nothing.Actual Behavior
!(e.g.!src/**/api.ts) are being treated as relative paths (/home/user/projects/!src/**/api.ts).#(e.g.#src/**/api.ts) are being treated as relative paths (/home/user/projects/#src/**/api.ts).Steps to reproduce the bug
Use patterns with the negation in your typedoc configuration:
Environment
v0.14.0;v0.14.1;v0.14.2;v0.15.0-0