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
I'm running my transform with command npx jscodeshift -t transforms/replace-indexes.ts ../company.reactapp/src --ignore-pattern **/node_modules/**
I would expect the command to ignore all files in the node_modules directory. What happens instead is no files is ignored.
Took me whole day to figure out that the relative path coused the issue. If I used an absolute path the the ignore pattern works just fine.
What little I managed to test, the true issue might be in micromatch library that handles the GLOB matching.
The text was updated successfully, but these errors were encountered:
I'm running my transform with command
npx jscodeshift -t transforms/replace-indexes.ts ../company.reactapp/src --ignore-pattern **/node_modules/**
I would expect the command to ignore all files in the
node_modules
directory. What happens instead is no files is ignored.Took me whole day to figure out that the relative path coused the issue. If I used an absolute path the the ignore pattern works just fine.
What little I managed to test, the true issue might be in
micromatch
library that handles the GLOB matching.The text was updated successfully, but these errors were encountered: