MCPcopy Index your code
hub / github.com/reactjs/react-codemod / expandFilePathsIfNeeded

Function expandFilePathsIfNeeded

bin/cli.js:195–202  ·  view source on GitHub ↗
(filesBeforeExpansion)

Source from the content-addressed store, hash-verified

193];
194
195function expandFilePathsIfNeeded(filesBeforeExpansion) {
196 const shouldExpandFiles = filesBeforeExpansion.some(file =>
197 file.includes('*')
198 );
199 return shouldExpandFiles
200 ? globby.sync(filesBeforeExpansion)
201 : filesBeforeExpansion;
202}
203
204function run() {
205 const cli = meow(

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected