components
components copied to clipboard
add a new method in utils.js to get path for file with specified name and possible formats
What has been implemented?
Duplicate code exists in different places on src/cli/utils.js. All of them seem to server one goal: given a directory, a filename and several different file formats, check if the files exist under the directory. I created a new method so that this part of code could be located in one place.