/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/helpers/findOutputFiles.js
18 строк
486 B
Alexander Akait
refactor: fix jsdocs types style
26 янв 2026, 15:58
Не верифицирован
26 янв 2026, 15:58
77fa2db
Код
Авторство
О чём код?
"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)); };