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

feat: ignore missing tsconfig #97

Merged
merged 3 commits into from
Apr 10, 2023
Merged

Conversation

haikyuu
Copy link
Contributor

@haikyuu haikyuu commented Jan 28, 2023

This fixes #96

src/types.ts Outdated
@@ -38,6 +38,12 @@ export interface PluginOptions {
* necessary.
*/
parseNative?: boolean
/**
* Enable use of `tsconfck.resolveWithEmptyIfConfigNotFound`.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems odd to mention an implementation detail in the description

Copy link
Contributor Author

@haikyuu haikyuu Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right, I'd rather copy the docs in tsconfck instead

Copy link
Owner

@aleclarson aleclarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some feedback to get this mergeable:

  • remove silent option and set resolveWithEmptyIfConfigNotFound to true
  • add a debug("tsconfig not found: %s", project) call before the return on line 96

Once that's done, I will release as a minor, since I don't think anyone is relying on the current behavior.

@aleclarson aleclarson changed the title feat: add option to be silent with no tsconfig feat: ignore missing tsconfig Apr 10, 2023
@aleclarson aleclarson merged commit 9766de8 into aleclarson:master Apr 10, 2023
@haikyuu
Copy link
Contributor Author

haikyuu commented Apr 11, 2023

Thanks for the update @aleclarson

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

Successfully merging this pull request may close these issues.

Enhancement: Add option to silently fail if no ts config file is found
2 participants