import * as globby from 'globby' ; export default function expandFilePathsIfNeeded ( filesBeforeExpansion ) { const shouldExpandFiles = filesBeforeExpansion . some ( ( file ) => file . includes ( '*' ) ) ; return shouldExpandFiles ? globby . sync ( filesBeforeExpansion ) : filesBeforeExpansion ; }