Skip to content
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

Feature: ignore a package in the --entryPointStrategy packages globs #1959

Closed
jlarmstrongiv opened this issue Jun 25, 2022 · 4 comments
Closed
Labels
enhancement Improved functionality

Comments

@jlarmstrongiv
Copy link

jlarmstrongiv commented Jun 25, 2022

Search Terms

Ignore a package in the --entryPointStrategy packages globs

Problem

I have a package in my monorepo that is pure css and no typescript as well as packages that are not exported. When running typedoc with --entryPointStrategy packages and globs, it may pick up packages I would prefer to ignore.

That way, I can hide the warning Could not determine the entry point for "/Users/jlarmst/Desktop/monorepos/turbo-monorepo/packages/configs/typedoc/package.json". Package will be ignored. and run typedoc with --treatWarningsAsErrors

Suggested Solution

Use the --exclude flag to disallow certain packages via the typedoc cli.

@jlarmstrongiv jlarmstrongiv added the enhancement Improved functionality label Jun 25, 2022
@jlarmstrongiv jlarmstrongiv mentioned this issue Jun 25, 2022
8 tasks
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jun 25, 2022

As far as options go - I think the --exclude option is still applicable here, it's used for filtering entry points with other strategies

@jlarmstrongiv
Copy link
Author

jlarmstrongiv commented Jul 2, 2022

@Gerrit0 Unfortunately, I don’t think the commit fixed this bug. I am on version v0.23.4. Could we re-open?

I am still receiving the warning:

warning Could not determine the entry point for "/absolute/path/to/package/package.json". Package will be ignored.

when using exclude with --entryPointStrategy packages:

--exclude "relative/path/to/package/**/*"

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jul 2, 2022

For packages, you're excluding a package itself, not the files within it, so you should use --exclude "relative/path/to/package/"

@jlarmstrongiv
Copy link
Author

That works 🎉 thank you @Gerrit0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improved functionality
Projects
None yet
Development

No branches or pull requests

2 participants