/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v5.101.3
test/helpers/findOutputFiles.js
18 строк
482 B
Alexander Akait
style: set `arrowParens` to `true` (#19706)
16 июл 2025, 19:13
Не верифицирован
16 июл 2025, 19:13
703d9ac
Код
Авторство
О чём код?
"use strict"; const fs = require("fs"); const path = require("path"); /** * @param {{output: {path: string}}} options options * @param {RegExp} regexp regexp * @param {string=} subpath path in output directory * @returns {string[]} files */ module.exports = function findOutputFiles(options, regexp, subpath) { const files = fs.readdirSync( subpath ? path.join(options.output.path, subpath) : options.output.path ); return files.filter((file) => regexp.test(file)); };