Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
jscodeshift ignoring files randomly

Im trying to use jscodeshift but when I say directory to /src it doesn't recurse correctly. For example:

When trying ./src I get 4 files:

(.venv) ./client$ jscodeshift -t ./scripts/flow-stats/coverage-transform.js --dry --ignore-pattern="**/__generated__/**" --parser="flow" ./src
Processing 4 files... 
Spawning 4 workers...

All done. 
Results: 
0 errors
0 unmodified
0 skipped
4 ok
Time elapsed: 0.721seconds 

If I try ./src/* I get 9 files:

(.venv) ./client$ jscodeshift -t ./scripts/flow-stats/coverage-transform.js --dry --ignore-pattern="**/__generated__/**" --parser="flow" ./src/*
Processing 9 files... 
Spawning 9 workers...

All done. 
Results: 
0 errors
0 unmodified
0 skipped
9 ok
Time elapsed: 0.820seconds

When I am more specific ./src/components/**/* I get 64 files?

(.venv) ./client$ jscodeshift -t ./scripts/flow-stats/coverage-transform.js --dry --ignore-pattern="**/__generated__/**" --parser="flow" ./src/components/**/*
Processing 64 files... 
Spawning 35 workers...

All done. 
Results: 
0 errors
0 unmodified
0 skipped
64 ok
Time elapsed: 1.958seconds 
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Jscodeshift is probably using glob patterns, which are commonly used in tools like jest for example. Try ./src/**/* and you should get all files.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!