diff --git a/cli.js b/cli.js index c98509f..f9b8a9b 100644 --- a/cli.js +++ b/cli.js @@ -49,7 +49,7 @@ if (argv.help) { if (err) throw err if (files.length === 0) process.exit() - engine(options(argv, packageOpts, files, cwd, repo), function (err, code) { + engine(options(argv, pkg, packageOpts, files, cwd, repo), function (err, code) { if (err) throw err process.exit(code) }) diff --git a/options.js b/options.js index df7a44b..8377b2c 100644 --- a/options.js +++ b/options.js @@ -4,7 +4,7 @@ const color = require('supports-color').stdout const extensions = require('markdown-extensions') const processor = require('remark') -module.exports = function (argv, packageOpts, files, cwd, repository) { +module.exports = function (argv, pkg, packageOpts, files, cwd, repository) { let reporter let reporterOptions @@ -38,7 +38,7 @@ module.exports = function (argv, packageOpts, files, cwd, repository) { contributors: contributors || null }] : null, - [require('remark-changelog'), { cwd, fix, repository }], + [require('remark-changelog'), { cwd, fix, repository, version: pkg.version }], [require('remark-github'), { repository }], // TODO: https://github.com/vweevers/hallmark/issues/36 diff --git a/package.json b/package.json index 924e0ae..150b8b7 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "find-root": "~1.1.0", "markdown-extensions": "~1.1.1", "remark": "~11.0.0", - "remark-changelog": "~0.1.1", + "remark-changelog": "~0.1.2", "remark-collapse": "~0.1.2", "remark-git-contributors": "~2.0.0", "remark-github": "~8.0.0",