From 6a3923eafcd243321eec2844d88cf025147fb3e8 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sat, 22 Aug 2020 11:38:00 +0200 Subject: [PATCH] Support passing options to remark-changelog --- options.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/options.js b/options.js index cddb689..3682511 100644 --- a/options.js +++ b/options.js @@ -26,6 +26,7 @@ module.exports = function (argv, pkg, packageOpts, files, cwd, repository) { const plugins = { plugins: packageOpts.plugins || [] } const fixers = { plugins: packageOpts.fixers || [] } + const changelogOptions = packageOpts.changelog || {} return { processor, @@ -41,7 +42,7 @@ module.exports = function (argv, pkg, packageOpts, files, cwd, repository) { contributors: contributors || null }] : null, - [require('remark-changelog'), { cwd, fix, repository, version: pkg.version }], + [require('remark-changelog'), { cwd, fix, repository, version: pkg.version, ...changelogOptions }], [require('remark-github'), { repository }], // TODO: https://github.com/vweevers/hallmark/issues/36