You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// type in node replconst{ nodeFileTrace }=require('@vercel/nft');(awaitnodeFileTrace([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
The text was updated successfully, but these errors were encountered:
Easiest way to reproduce:
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 ofrequire.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
The text was updated successfully, but these errors were encountered: