New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude externals do not seem to work in 0.24.0 #2222
Comments
This is (mostly) working as expected. You set the I should probably update that example to use a base typedoc.json that packages extend, since that's what most monorepos will probably want to use. With these changes, the lodash functions are no longer included in your documentation, and you will no longer receive warnings about their comments. diff --git a/packages/foo/package.json b/packages/foo/package.json
index 5041dbb..3d88be5 100644
--- a/packages/foo/package.json
+++ b/packages/foo/package.json
@@ -11,6 +11,10 @@
"typedocOptions": {
"entryPoints": [
"src/index.ts"
- ]
+ ],
+ "externalPattern": [
+ "**/node_modules/**"
+ ],
+ "excludeExternals": true
}
} I say mostly working as intended, because this interface LoDashStatic {
/**
* This method is like `_.uniq` except that it accepts `iteratee` which is
* invoked for each element in `array` to generate the criterion by which
* uniqueness is computed. The iteratee is invoked with one argument: (value).
*
* @category Array
* @param array The array to inspect.
* @param [iteratee=_.identity] The iteratee invoked per element.
* @returns Returns the new duplicate free array.
* @example
*
* _.uniqBy([2.1, 1.2, 2.3], Math.floor);
* // => [2.1, 1.2]
*
* // using the `_.property` iteratee shorthand
* _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
* // => [{ 'x': 1 }, { 'x': 2 }]
*/
uniqBy<T>(array: List<T> | null | undefined, iteratee: ValueIteratee<T>): T[];
} |
Would be great if we could update the doc to indicate which configs/options are inheritable for
I took a wild guess and tried to do something like
didn't work though 😅 so if we could have example/doc that would be super great. Thank you so much!! |
PR welcome for the docs! I'll get something up there eventually, but it'll probably be next weekend, busy with family tomorrow :) The |
Search terms
exclude, externals, packages strategy
Expected Behavior
External packages should not be scanned when excluded with
externalPattern
andexcludeExternals
combinationActual Behavior
External packages are still scanned and warnings are shown
Steps to reproduce the bug
Follow the steps in Gerrit0/typedoc-packages-example#1
Environment
The text was updated successfully, but these errors were encountered: