@commitlint/read
Advanced tools
Comparing version 19.4.0 to 19.5.0
import minimist from 'minimist'; | ||
import { getHistoryCommits } from './get-history-commits.js'; | ||
import { getEditCommit } from './get-edit-commit.js'; | ||
import { execa } from 'execa'; | ||
import { x } from 'tinyexec'; | ||
// Get commit messages | ||
@@ -13,4 +13,4 @@ export default async function getCommitMessages(settings) { | ||
if (last) { | ||
const gitCommandResult = await execa('git', ['log', '-1', '--pretty=format:%B'], { cwd }); | ||
let output = gitCommandResult.stdout; | ||
const gitCommandResult = await x('git', ['log', '-1', '--pretty=format:%B'], { nodeOptions: { cwd } }); | ||
let output = gitCommandResult.stdout.trim(); | ||
// strip output of extra quotation marks ("") | ||
@@ -22,3 +22,3 @@ if (output[0] == '"' && output[output.length - 1] == '"') | ||
if (!from && fromLastTag) { | ||
const { stdout } = await execa('git', [ | ||
const output = await x('git', [ | ||
'describe', | ||
@@ -30,3 +30,4 @@ '--abbrev=40', | ||
'--tags', | ||
], { cwd }); | ||
], { nodeOptions: { cwd } }); | ||
const stdout = output.stdout.trim(); | ||
if (stdout.length === 40) { | ||
@@ -33,0 +34,0 @@ // Hash only means no last tag. Use that as the from ref which |
{ | ||
"name": "@commitlint/read", | ||
"type": "module", | ||
"version": "19.4.0", | ||
"version": "19.5.0", | ||
"description": "Read commit messages from a specified range or last edit", | ||
@@ -39,4 +39,4 @@ "main": "lib/read.js", | ||
"devDependencies": { | ||
"@commitlint/test": "^19.0.0", | ||
"@commitlint/utils": "^19.0.0", | ||
"@commitlint/test": "^19.5.0", | ||
"@commitlint/utils": "^19.5.0", | ||
"@types/git-raw-commits": "^2.0.3", | ||
@@ -46,9 +46,9 @@ "@types/minimist": "^1.2.4" | ||
"dependencies": { | ||
"@commitlint/top-level": "^19.0.0", | ||
"@commitlint/types": "^19.0.3", | ||
"execa": "^8.0.1", | ||
"@commitlint/top-level": "^19.5.0", | ||
"@commitlint/types": "^19.5.0", | ||
"git-raw-commits": "^4.0.0", | ||
"minimist": "^1.2.8" | ||
"minimist": "^1.2.8", | ||
"tinyexec": "^0.3.0" | ||
}, | ||
"gitHead": "bac2288cc7de5bb6f41939d1c562193c74ce16d5" | ||
"gitHead": "7e79af18b7500cda0e38f35944ee08b0b312c006" | ||
} |
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
13144
115
+ Addedtinyexec@^0.3.0
+ Addedtinyexec@0.3.0(transitive)
- Removedexeca@^8.0.1
- Removedcross-spawn@7.0.3(transitive)
- Removedexeca@8.0.1(transitive)
- Removedget-stream@8.0.1(transitive)
- Removedhuman-signals@5.0.0(transitive)
- Removedis-stream@3.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmimic-fn@4.0.0(transitive)
- Removednpm-run-path@5.3.0(transitive)
- Removedonetime@6.0.0(transitive)
- Removedpath-key@3.1.14.0.0(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedstrip-final-newline@3.0.0(transitive)
- Removedwhich@2.0.2(transitive)
Updated@commitlint/types@^19.5.0