Skip to content

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

Description

@devm33

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions