UNPKG

barro

Version:

Flexible barrel file generation for Javascript and Typescript with watching built-in.

22 lines 794 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBarrelIgnoreGlobs = void 0; const path_1 = require("path"); const commonGlobs_1 = require("./utils/commonGlobs"); function getBarrelIgnoreGlobs({ out, match, matchDirectory, matchIgnore = [], ignoreBarrels = true, ignoreTests = true, }) { const ignoreGlobs = [ // Ignore the index file being generated path_1.relative(matchDirectory, out), // User specified ...matchIgnore, ]; if (ignoreBarrels) { ignoreGlobs.push(commonGlobs_1.barrelGlob); } if (ignoreTests) { ignoreGlobs.push(commonGlobs_1.testGlob); } return ignoreGlobs; } exports.getBarrelIgnoreGlobs = getBarrelIgnoreGlobs; //# sourceMappingURL=getBarrelIgnoreGlobs.js.map