semantic-release-commit-filter
Version:
semantic-release plugin that filters git commits based on the current working directory
19 lines • 780 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = require("path");
Object.keys(require.cache)
.filter(m => path_1.posix.normalize(m).endsWith("/node_modules/git-log-parser/src/index.js"))
.forEach(moduleName => {
const parse = require.cache[moduleName].exports.parse;
require.cache[moduleName].exports.parse = (config, options) => {
if (Array.isArray(config._))
config._.push(options.cwd);
else if (config._)
config._ = [config._, options.cwd];
else
config._ = options.cwd;
return parse(config, options);
};
});
exports.tagFormat = `${require(path_1.posix.resolve(process.cwd(), "package.json")).name}-v\${version}`;
//# sourceMappingURL=index.js.map
;