-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
glob-support in excludePathsFromReport #201
Comments
this it how I currently built this around this library:
|
@boredland we could add this feature. BUT I think we'd like to avoid a breaking change - so if the value contains So: 1 - BUT in the short term, I think you can add the file name like this: (both file and folder names should work)
related unit test: |
the problem is, that a we have a lot of those files and new ones get added eventually. I think having this little custom script works fine for now. |
hi, didn't want to create a new similar issue. Tried adding
After some debugging noticed that the regex patterns only receive the filename without extension. This seemed unexpected and a bit frustrating as most tools usually have the filename with extension. So the question, is that expected behaviour? Would you consider passing the extension as well? Update: Contents of the export * from "./graphql-generated";
export * from "./fragments";
export * from "./global"; |
Hi there!
I have some generated code in my project. Some of its exports are being used, some aren't. As I see it, this library has three ways to deal with this: "ignoreFiles" and "excludePathsFromReport" and not passing the files to it (either via tsconfig.files/include/exclude or by specifying the files passed to it).
My problem is:
The remaining option subsequently is "excludePathsFromReport". In places in our codebase that have generated files in a single specific path, this works out quite nice. But sadly in other parts we have generated code alongside its source:
So if I didn't oversee something there currently isn't an option to make usage of
origin.ts
inorigin.generated.ts
count while excludingorigin.generated.ts
from the final report. Therefore I'd like to add glob pattern support forexcludePathsFromReport
(using globby or similar). Wdyt?This could lead to patterns like this for me being allowed:
excludePathsFromReport="**/*.generated.*"
The text was updated successfully, but these errors were encountered: