Skip to content

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

@devm33

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions