| | |
| | | "use strict"; |
| | | var __importDefault = (this && this.__importDefault) || function (mod) { |
| | | return (mod && mod.__esModule) ? mod : { "default": mod }; |
| | | }; |
| | | Object.defineProperty(exports, "__esModule", { value: true }); |
| | | exports.matchFiles = void 0; |
| | | const path_1 = __importDefault(require("path")); |
| | | const util_1 = __importDefault(require("util")); |
| | | const glob_1 = __importDefault(require("glob")); |
| | | const tslib_1 = require("tslib"); |
| | | const path_1 = (0, tslib_1.__importDefault)(require("path")); |
| | | const util_1 = (0, tslib_1.__importDefault)(require("util")); |
| | | const glob_1 = (0, tslib_1.__importDefault)(require("glob")); |
| | | const type_guards_1 = require("./type-guards"); |
| | | const isLegacyWebpack = (ctx) => !!ctx.options; |
| | | const getRootContext = (ctx) => { |
| | |
| | | const emptyItems = []; |
| | | return emptyItems.concat(...items); |
| | | }; |
| | | exports.matchFiles = async (ctx, options) => { |
| | | const matchFiles = async (ctx, options) => { |
| | | const { patterns, globOptions } = options; |
| | | const files = await Promise.all(patterns.map(async (pattern) => { |
| | | const rootContext = getRootContext(ctx); |
| | |
| | | })); |
| | | return [...new Set(flatten(files))].map(file => path_1.default.resolve(file)); |
| | | }; |
| | | exports.matchFiles = matchFiles; |
| | | //# sourceMappingURL=match-files.js.map |