question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to exclude node_modules folder

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:8

github_iconTop GitHub Comments

13reactions
alexisbgcommented, Jun 6, 2018

Add: "skipLibCheck": true to tsconfig.json compilerOptions.

4reactions
jtc10005commented, Nov 15, 2016

I used "externalPattern": "**/node_modules/**", or "exclude": "**/node_modules/**" in my typedoc.json (I can’t remember which)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why my node_modules folder is excluded in my phpStorm?
I believe they're not considered source files, as the contents of the node_modules folder are imported dependencies.
Read more >
Not able to Exclude node_modules entire folder in node js
I am not able to excude node_modules entire folder here is my .properties file config sonar.exclusions=node_modules/**/* please help me !!
Read more >
How to exclude node_modules directory from OneDrive ...
As of July 2019: If you are getting sync errors about 'The file or folder already exists', go to OneDrive web UI, and...
Read more >
Exclude node_modules Folder from Git using .gitignore
When you work in Node, you often will have a node_modules folder. This is because this is the folder where all the modules...
Read more >
3 ways to hide node_modules in vscode - jcutrer.com
Hide Node Modules is a great little vscode module created by Chris Bibby that does exactly what you want. The extension adds a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found