-
-
Notifications
You must be signed in to change notification settings - Fork 737
Not able to exclude node_modules folder #319
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
Comments
I used |
I succeeded with this command. but, printed many error logs. |
I left the The problem I'm trying to solve is having links/references put into the docs that are to my local project's Edit: What I ended up doing was adding a
|
i can't exclude too "scripts": {
"doc": "typedoc --theme markdown --out ./docs --ignoreCompilerErrors --exclude **/{node_modules,test,doc}/**/* .",
"doc2": "typedoc --theme markdown --externalPattern \"**/(node_modules|test|doc)/**\" --out ./docs --ignoreCompilerErrors --exclude \"**/(node_modules|test|doc)/**/*\" .",
"doc3": "typedoc --theme markdown --out ./docs --ignoreCompilerErrors .",
"test": "npx mocha \"!(node_modules)\\**\\*.+(test|spec).js\""
}, they all print
Edited to shorten comment |
Add: |
I did not have success with any of the proposed solutions here. My specific issue is with
(of course the |
Same issue here, none-of the proposed solutions have worked for me, and I am on the latest v0.13.0 as of writing this. I'm just trying to generate json and it's including all of the node_modules .d.ts files in there. |
Here's an overview of how the exclude option works now, and a few notes on potential issues with changing it.
The obvious fix is to filter source files based on the exclude pattern... but this raises a few more issues.
|
Still working with TypeDoc version 0.25.6 |
I run the following command on an Angular2 project:
typedoc --experimentalDecorators --target 'es5' --module 'commonjs' --externalPattern node_modules --excludeExternals --ignoreCompilerErrors --out docs/ web/
I am apparently not able to properly exclude the node_modules folder from the documentation. Whatever I do, the node_modules packages get documented. This is the folder structure
/web
_ _/app
_ _/assets
_ _/e2e
_ _/node_modules
_ _/typings
I tried using exclude and externalPattern + excludeExternals. I tried many combinations of patterns, but apparently I am doing it wrong. I tried values like this:
node_modules
/node_modules/
node_modules/**
node_modules/*/.ts
etc.
I would be very grateful if someone pointed out my mistake and made a couple of examples how the patterns should be defined?
The text was updated successfully, but these errors were encountered: