1 | import { getMatchesPerPattern, MATCH } from './match-files.js'
|
2 | import glob from 'fast-glob'
|
3 |
|
4 | export 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 | }
|