UNPKG

@liara/cli

Version:

The command line interface for Liara

13 lines (12 loc) 295 B
import { globby } from 'globby'; async function findFile(projectPath, fileName) { const [path] = await globby(fileName, { cwd: projectPath, gitignore: true, deep: 5, onlyFiles: true, absolute: true, }); return path; } export default findFile;