ezchangelog
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -13,5 +13,2 @@ #!/usr/bin/env node | ||
boolean: ['print', 'incremental'], | ||
default: { | ||
incremental: true, | ||
}, | ||
alias: { | ||
@@ -34,3 +31,3 @@ p: 'print', | ||
.then(function (conf) { | ||
var dest = argv.print | ||
var dest = argv.print || !conf.out | ||
? process.stdout | ||
@@ -42,4 +39,2 @@ : fs.createWriteStream(conf.out) | ||
formatter.get('wrap').pop() | ||
} else if (argv.print) { | ||
formatter.get('wrap').pop() | ||
} | ||
@@ -59,3 +54,3 @@ process.stdin | ||
}) | ||
}) | ||
}).catch(function () {}) | ||
} | ||
@@ -76,5 +71,4 @@ | ||
} | ||
conf.out = conf.out || 'changelog.md' | ||
return conf | ||
}) | ||
} |
{ | ||
"name": "ezchangelog", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "changelog", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -20,3 +20,3 @@ # ezchangelog | ||
# Print the new changelog contents | ||
git log | ezchangelog-stream -p | ||
git log | ezchangelogStream -p | ||
@@ -36,3 +36,3 @@ ``` | ||
## ezchangelog-stream | ||
## ezchangelogStream | ||
Specify more custom options. | ||
@@ -51,4 +51,7 @@ | ||
`-f, --file`: specify the changelog file path. | ||
`-o, --out`: specify the changelog file path. | ||
`--inc, --incremental`: used together with `--out` to update changelog incrementally. | ||
## package.json | ||
@@ -59,4 +62,4 @@ | ||
"ezchangelog": { | ||
"commits": "https://github.com/zoubin/ezchangelog/commit/", | ||
"changelog": "changelog.md" | ||
"baseUrl": "https://github.com/zoubin/ezchangelog/commit/", | ||
"out": "changelog.md" | ||
} | ||
@@ -68,6 +71,6 @@ } | ||
`commits`: specify the base path for each commit. | ||
`baseUrl`: specify the base path for each commit. | ||
By default, commits are linked to github. | ||
`changelog`: specify the changelog file path | ||
`out`: specify the changelog file path | ||
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
72
2
11011
321