Skip to content

Commit 3e0aa84

Browse files
stevemaobcoe
authored andcommitted
feat(changelogStream): use more default opts (#67)
`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.
1 parent e600b42 commit 3e0aa84

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ function outputChangelog (argv, cb) {
9090
}
9191
var content = ''
9292
var changelogStream = conventionalChangelog({
93-
preset: 'angular',
94-
outputUnreleased: true,
95-
pkg: {
96-
path: path.resolve(process.cwd(), './package.json')
97-
}
93+
preset: 'angular'
9894
})
9995
.on('error', function (err) {
10096
console.error(chalk.red(err.message))

0 commit comments

Comments
 (0)