@commitlint/cli
Advanced tools
Comparing version 19.3.0 to 19.4.0
@@ -69,2 +69,6 @@ import { createRequire } from 'module'; | ||
}, | ||
'from-last-tag': { | ||
description: 'uses the last tag as the lower end of the commit range to lint; applies if edit=false and from is not set', | ||
type: 'boolean', | ||
}, | ||
'git-log-args': { | ||
@@ -115,2 +119,3 @@ description: "additional git log arguments as space separated string, example '--first-parent --cherry-pick'", | ||
.alias('h', 'help') | ||
.config('options', 'path to a JSON file or Common.js module containing CLI options', require) | ||
.usage(`${pkg.name}@${pkg.version} - ${pkg.description}\n`) | ||
@@ -181,2 +186,3 @@ .usage(`[input] reads from stdin if --edit, --env, --from and --to are omitted`) | ||
from: flags.from, | ||
fromLastTag: flags['from-last-tag'], | ||
last: flags.last, | ||
@@ -306,2 +312,3 @@ edit: flags.edit, | ||
return (typeof flags.from === 'string' || | ||
typeof flags['from-last-tag'] === 'boolean' || | ||
typeof flags.to === 'string' || | ||
@@ -308,0 +315,0 @@ typeof flags.last === 'boolean'); |
@@ -11,2 +11,3 @@ export interface CliFlags { | ||
from?: string; | ||
'from-last-tag'?: boolean; | ||
'git-log-args'?: string; | ||
@@ -13,0 +14,0 @@ last?: boolean; |
{ | ||
"name": "@commitlint/cli", | ||
"type": "module", | ||
"version": "19.3.0", | ||
"version": "19.4.0", | ||
"description": "Lint your commit messages", | ||
@@ -53,4 +53,4 @@ "files": [ | ||
"@commitlint/lint": "^19.2.2", | ||
"@commitlint/load": "^19.2.0", | ||
"@commitlint/read": "^19.2.1", | ||
"@commitlint/load": "^19.4.0", | ||
"@commitlint/read": "^19.4.0", | ||
"@commitlint/types": "^19.0.3", | ||
@@ -60,3 +60,3 @@ "execa": "^8.0.1", | ||
}, | ||
"gitHead": "447fd3b415d11cce15ec1af3b948a2c97cfdd8f5" | ||
"gitHead": "bac2288cc7de5bb6f41939d1c562193c74ce16d5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
31182
433
Updated@commitlint/load@^19.4.0
Updated@commitlint/read@^19.4.0