conventional-changelog-cli
Advanced tools
Comparing version 2.1.1 to 3.0.0
23
cli.js
@@ -9,3 +9,2 @@ #!/usr/bin/env node | ||
const tempfile = require('tempfile') | ||
const _ = require('lodash') | ||
const resolve = require('path').resolve | ||
@@ -29,3 +28,3 @@ | ||
-p, --preset Name of the preset you want to use. Must be one of the following: | ||
angular, atom, codemirror, ember, eslint, express, jquery, jscs or jshint | ||
angular, atom, codemirror, conventionalcommits, ember, eslint, express, jquery or jshint | ||
@@ -137,3 +136,3 @@ -k, --pkg A filepath of where your package.json is located | ||
let options = _.omitBy({ | ||
let options = { | ||
preset: flags.preset, | ||
@@ -149,3 +148,3 @@ pkg: { | ||
tagPrefix: flags.tagPrefix | ||
}, _.isUndefined) | ||
} | ||
@@ -169,3 +168,13 @@ if (flags.verbose) { | ||
options.config = config | ||
options = _.merge(options, config.options) | ||
if (config.options) { | ||
options = { | ||
...options, | ||
...config.options, | ||
pkg: { | ||
...options.pkg, | ||
...config.options.pkg | ||
} | ||
} | ||
} | ||
} else { | ||
@@ -179,3 +188,5 @@ config = {} | ||
const gitRawCommitsOpts = _.merge({}, config.gitRawCommitsOpts || {}) | ||
const gitRawCommitsOpts = { | ||
...config.gitRawCommitsOpts | ||
} | ||
if (flags.commitPath) gitRawCommitsOpts.path = flags.commitPath | ||
@@ -182,0 +193,0 @@ |
{ | ||
"name": "conventional-changelog-cli", | ||
"version": "2.1.1", | ||
"version": "3.0.0", | ||
"description": "Generate a changelog from git metadata", | ||
@@ -33,16 +33,14 @@ "bugs": { | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=14" | ||
}, | ||
"dependencies": { | ||
"add-stream": "^1.0.0", | ||
"conventional-changelog": "^3.1.24", | ||
"lodash": "^4.17.15", | ||
"meow": "^8.0.0", | ||
"conventional-changelog": "^4.0.0", | ||
"meow": "^8.1.2", | ||
"tempfile": "^3.0.0" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"test-windows": "echo 'make work on windows'" | ||
}, | ||
"license": "MIT", | ||
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca" | ||
} | ||
} | ||
} |
# conventional-changelog-cli | ||
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] | ||
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coverage-image]][coverage-url] | ||
@@ -127,3 +127,3 @@ > Generate a changelog from git metadata | ||
[daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog-cli | ||
[coveralls-image]: https://coveralls.io/repos/conventional-changelog/conventional-changelog-cli/badge.svg | ||
[coveralls-url]: https://coveralls.io/r/conventional-changelog/conventional-changelog-cli | ||
[coverage-image]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master | ||
[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
225
14164
4
+ Addedconventional-changelog@4.0.0(transitive)
+ Addedconventional-changelog-angular@6.0.0(transitive)
+ Addedconventional-changelog-atom@3.0.0(transitive)
+ Addedconventional-changelog-codemirror@3.0.0(transitive)
+ Addedconventional-changelog-conventionalcommits@6.1.0(transitive)
+ Addedconventional-changelog-core@5.0.2(transitive)
+ Addedconventional-changelog-ember@3.0.0(transitive)
+ Addedconventional-changelog-eslint@4.0.0(transitive)
+ Addedconventional-changelog-express@3.0.0(transitive)
+ Addedconventional-changelog-jquery@4.0.0(transitive)
+ Addedconventional-changelog-jshint@3.0.0(transitive)
+ Addedconventional-changelog-preset-loader@3.0.0(transitive)
+ Addedconventional-changelog-writer@6.0.1(transitive)
+ Addedconventional-commits-filter@3.0.0(transitive)
+ Addedconventional-commits-parser@4.0.0(transitive)
+ Addedgit-raw-commits@3.0.0(transitive)
+ Addedgit-semver-tags@5.0.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
- Removedlodash@^4.17.15
- Removedconventional-changelog@3.1.25(transitive)
- Removedconventional-changelog-angular@5.0.13(transitive)
- Removedconventional-changelog-atom@2.0.8(transitive)
- Removedconventional-changelog-codemirror@2.0.8(transitive)
- Removedconventional-changelog-conventionalcommits@4.6.3(transitive)
- Removedconventional-changelog-core@4.2.4(transitive)
- Removedconventional-changelog-ember@2.0.9(transitive)
- Removedconventional-changelog-eslint@3.0.9(transitive)
- Removedconventional-changelog-express@2.0.6(transitive)
- Removedconventional-changelog-jquery@3.0.11(transitive)
- Removedconventional-changelog-jshint@2.0.9(transitive)
- Removedconventional-changelog-preset-loader@2.3.4(transitive)
- Removedconventional-changelog-writer@5.0.1(transitive)
- Removedconventional-commits-filter@2.0.7(transitive)
- Removedconventional-commits-parser@3.2.4(transitive)
- Removedgit-raw-commits@2.0.11(transitive)
- Removedgit-semver-tags@4.1.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedq@1.5.1(transitive)
- Removedsemver@6.3.1(transitive)
- Removedthrough2@4.0.2(transitive)
Updatedmeow@^8.1.2