UNPKG

308 BJavaScriptView Raw
1import { getMatchesPerPattern, MATCH } from './match-files.js'
2import glob from 'fast-glob'
3
4export default async function getFiles(src) {
5 let files = await glob(MATCH, {
6 absolute: true,
7 cwd: src,
8 ignore: ['**/node_modules/**', '**/view.js'],
9 })
10
11 return await getMatchesPerPattern(files)
12}