conventional-changelog-cli
Advanced tools
Comparing version 1.2.1 to 1.3.0
15
cli.js
@@ -48,3 +48,5 @@ #!/usr/bin/env node | ||
'', | ||
' -c, --context A filepath of a json that is used to define template variables' | ||
' -c, --context A filepath of a json that is used to define template variables', | ||
' -l, --lerna-package Generate a changelog for a specific lerna package (:pkg-name@1.0.0)', | ||
' --commit-path Generate a changelog scoped to a specific directory' | ||
] | ||
@@ -63,3 +65,4 @@ }, { | ||
n: 'config', | ||
c: 'context' | ||
c: 'context', | ||
l: 'lernaPackage' | ||
} | ||
@@ -94,3 +97,4 @@ }); | ||
releaseCount: releaseCount, | ||
outputUnreleased: flags.outputUnreleased | ||
outputUnreleased: flags.outputUnreleased, | ||
lernaPackage: flags.lernaPackage | ||
}, _.isUndefined); | ||
@@ -122,3 +126,6 @@ | ||
var changelogStream = conventionalChangelog(options, templateContext, config.gitRawCommitsOpts, config.parserOpts, config.writerOpts) | ||
var gitRawCommitsOpts = _.merge({}, config.gitRawCommitsOpts || {}); | ||
if (flags.commitPath) gitRawCommitsOpts.path = flags.commitPath; | ||
var changelogStream = conventionalChangelog(options, templateContext, gitRawCommitsOpts, config.parserOpts, config.writerOpts) | ||
.on('error', function (err) { | ||
@@ -125,0 +132,0 @@ if (flags.verbose) { |
{ | ||
"name": "conventional-changelog-cli", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Generate a changelog from git metadata", | ||
@@ -36,3 +36,3 @@ "homepage": "https://github.com/conventional-changelog/conventional-changelog-cli", | ||
"add-stream": "^1.0.0", | ||
"conventional-changelog": "^1.1.1", | ||
"conventional-changelog": "^1.1.2", | ||
"lodash": "^4.1.0", | ||
@@ -39,0 +39,0 @@ "meow": "^3.7.0", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16202
178
0