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

[esbuild-plugin-copy] Feature request: throw when no files matched #107

Open
devm33 opened this issue Sep 26, 2023 · 0 comments
Open

[esbuild-plugin-copy] Feature request: throw when no files matched #107

devm33 opened this issue Sep 26, 2023 · 0 comments

Comments

@devm33
Copy link

devm33 commented Sep 26, 2023

Hello, currently if an input to path is incorrect the only notification is a log if verbose is enabled. It'd be great to have a setting to error in this case to highlight that something is wrong

if (!deduplicatedPaths.length) {
verboseLog(
`No files matched using current glob pattern: ${chalk.white(
from
)}, maybe you need to configure globby by ${chalk.white(
'options.globbyOptions'
)}?`,
verbose
);
}

Let me know if you'd be open to a PR for this.

Thanks for the plugin!

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

No branches or pull requests

1 participant