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

Negated patterns doesn't work correctly. #54

Open
rktyt opened this issue Jun 1, 2021 · 1 comment
Open

Negated patterns doesn't work correctly. #54

rktyt opened this issue Jun 1, 2021 · 1 comment

Comments

@rktyt
Copy link

rktyt commented Jun 1, 2021

rollup: v2.50.5
rollup-plugin-copy: v3.4.0


code:

copy({
  targets: [
    {
      src: [`${srcDir}/images/**/*`, `!**/*.md`],
      dest: `${distDir}/images`,
    },
  ],
}),

${srcDir}/images:

images
  ├README.md
  └ test
     ├ README.md
     └ test
        └ README.md

Actual result

${distDir}/images:

images
 └ test
    ├ README.md
    └ test
       └ README.md

Expected result

${distDir}/images is empty.

@JustifydWarrior
Copy link

JustifydWarrior commented Jul 11, 2021

can replicate, enough issues with Rollup plugins on node 16 to bail entirely.

update: I was able to work around using node 14. however this isn't a viable solution, especially as we transition 16 into LTS this fall: https://nodejs.org/en/about/releases/

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

2 participants