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

glob in ignore option does not work #445

Open
aczekajski opened this issue Oct 9, 2024 · 0 comments
Open

glob in ignore option does not work #445

aczekajski opened this issue Oct 9, 2024 · 0 comments

Comments

@aczekajski
Copy link

aczekajski commented Oct 9, 2024

Easiest way to reproduce:

// type in node repl
const { nodeFileTrace } = require('@vercel/nft');
(await nodeFileTrace([require.resolve('glob')], { ignore: ['node_modules/**'] })).fileList;

This outputs exactly same list of files as if no ignore option was provided at all. It should output list containing only the input file itself (result of require.resolve).

I have a hunch it happens only on windows (but I have no way of confirming it now), as on windows the package outputs \ as path separators. However I also tried 'node_modules\\**' and it didn't work as well.

Env:
OS: Windows 10
Node: v18.19.0
@vercel/nft version: 0.27.4

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