Skip to content

Commit

Permalink
chore: respect the --[e]dit flag as documented
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Feb 22, 2016
1 parent d1a54ea commit 29630f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"conventional-changelog-lint": "distribution/cli.js"
},
"scripts": {
"start": "npm run watch",
"build": "babel source --out-dir distribution",
"watch": "npm run build -- --watch",
"commit": "git-cz",
Expand Down Expand Up @@ -61,7 +62,7 @@
"babel-polyfill": "6.3.14",
"chalk": "1.1.1",
"conventional-changelog-angular": "1.0.0",
"conventional-changelog-lint-config-angular": "0.1.2",
"conventional-changelog-lint-config-angular": "^0.1.2",
"conventional-commits-parser": "1.0.1",
"denodeify": "1.2.1",
"franc": "1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion source/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function main(options) {
const input = fromStdin ?
[await stdin()] :
await getMessages(
pick(flags, ['edit', 'from', 'to'])
pick(flags, 'edit', 'from', 'to')
);

return Promise.all(input
Expand Down
2 changes: 1 addition & 1 deletion source/library/get-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default (name = 'conventional-changelog-lint', settings = {
prefix: 'conventional-changelog-lint-config'
}, seed = {}) => {
const config = merge(rc(name, settings.defaults), seed);
const opts = merge({}, defaults, pick(config, ['extends']));
const opts = merge({}, defaults, pick(config, 'extends'));
return merge(
{},
resolveExtends(opts, settings.prefix),
Expand Down

0 comments on commit 29630f0

Please sign in to comment.