Skip to content

Commit

Permalink
feat(changelogStream): use more default opts (#67)
Browse files Browse the repository at this point in the history
`pkg.path` defaults to the closest package.json (https://github.com/conventional-changelog/conventional-changelog-core#path), which is the same as `npm-version`.
`outputUnreleased` does not do anything to this module.
  • Loading branch information
stevemao authored and bcoe committed Jun 25, 2016
1 parent e600b42 commit 3e0aa84
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,7 @@ function outputChangelog (argv, cb) {
}
var content = ''
var changelogStream = conventionalChangelog({
preset: 'angular',
outputUnreleased: true,
pkg: {
path: path.resolve(process.cwd(), './package.json')
}
preset: 'angular'
})
.on('error', function (err) {
console.error(chalk.red(err.message))
Expand Down

0 comments on commit 3e0aa84

Please sign in to comment.