Open
Description
Describe the bug
If one uses glob negation with passthrough file copy, nothing is copied and there is no error or warning.
To Reproduce
- Install
@11ty/eleventy
via npm - Create file
.eleventy.js
, with the following contents:module.exports = (eleventyConfig) => { eleventyConfig.addPassthroughCopy("**/*!(.md)") }
- Add a
.txt
and a.md
file, for testing purposes. - Run
npx eleventy
- See that the
.md
file is passed through.
Expected behavior
If glob negation is used with passthrough file copy, the expression should be interpreted as expected. In our example, we would expect eleventy not to copy any markdown files.
Environment:
- OS and Version: Windows 10
- Eleventy Version: v0.11.1
Additional context
Surfaced in #1483 (comment)