typescript-strict-plugin
Version:
Typescript tools that help with migration to the strict mode
10 lines (9 loc) • 402 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFileMatchedByPattern = void 0;
const utils_1 = require("./utils");
const minimatch_1 = require("minimatch");
function isFileMatchedByPattern({ filePath, pattern, }) {
return (0, minimatch_1.minimatch)((0, utils_1.getPosixFilePath)(filePath), pattern);
}
exports.isFileMatchedByPattern = isFileMatchedByPattern;
;