Skip to content

Commit 29630f0

Browse files
committed
chore: respect the --[e]dit flag as documented
1 parent d1a54ea commit 29630f0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"conventional-changelog-lint": "distribution/cli.js"
1111
},
1212
"scripts": {
13+
"start": "npm run watch",
1314
"build": "babel source --out-dir distribution",
1415
"watch": "npm run build -- --watch",
1516
"commit": "git-cz",
@@ -61,7 +62,7 @@
6162
"babel-polyfill": "6.3.14",
6263
"chalk": "1.1.1",
6364
"conventional-changelog-angular": "1.0.0",
64-
"conventional-changelog-lint-config-angular": "0.1.2",
65+
"conventional-changelog-lint-config-angular": "^0.1.2",
6566
"conventional-commits-parser": "1.0.1",
6667
"denodeify": "1.2.1",
6768
"franc": "1.1.2",

source/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function main(options) {
8686
const input = fromStdin ?
8787
[await stdin()] :
8888
await getMessages(
89-
pick(flags, ['edit', 'from', 'to'])
89+
pick(flags, 'edit', 'from', 'to')
9090
);
9191

9292
return Promise.all(input

source/library/get-configuration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default (name = 'conventional-changelog-lint', settings = {
2626
prefix: 'conventional-changelog-lint-config'
2727
}, seed = {}) => {
2828
const config = merge(rc(name, settings.defaults), seed);
29-
const opts = merge({}, defaults, pick(config, ['extends']));
29+
const opts = merge({}, defaults, pick(config, 'extends'));
3030
return merge(
3131
{},
3232
resolveExtends(opts, settings.prefix),

0 commit comments

Comments
 (0)