@commitlint/prompt-cli 19.4.1 → 19.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +5 -5
  2. package/package.json +7 -7
package/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {prompter} from '@commitlint/prompt';
3
- import {execa} from 'execa';
4
3
  import inquirer from 'inquirer';
4
+ import {x} from 'tinyexec';
5
5
 
6
6
  main().catch((err) => {
7
7
  setTimeout(() => {
@@ -23,11 +23,11 @@ function main() {
23
23
  }
24
24
 
25
25
  function isStageEmpty() {
26
- return execa('git', ['diff', '--cached']).then((r) => r.stdout === '');
26
+ return x('git', ['diff', '--cached']).then((r) => r.stdout === '');
27
27
  }
28
28
 
29
29
  function commit(message) {
30
- const c = execa('git', ['commit', '-m', message]);
31
- c.stdout.pipe(process.stdout);
32
- c.stderr.pipe(process.stderr);
30
+ const result = x('git', ['commit', '-m', message]);
31
+ result.process.stdout.pipe(process.stdout);
32
+ result.process.stderr.pipe(process.stderr);
33
33
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commitlint/prompt-cli",
3
3
  "type": "module",
4
- "version": "19.4.1",
4
+ "version": "19.6.0",
5
5
  "description": "commit prompt using commitlint.config.js",
6
6
  "main": "cli.js",
7
7
  "files": [
@@ -34,13 +34,13 @@
34
34
  "node": ">=v18"
35
35
  },
36
36
  "devDependencies": {
37
- "@commitlint/test": "^19.0.0",
38
- "@commitlint/utils": "^19.0.0"
37
+ "@commitlint/test": "^19.5.0",
38
+ "@commitlint/utils": "^19.5.0"
39
39
  },
40
40
  "dependencies": {
41
- "@commitlint/prompt": "^19.4.1",
42
- "execa": "^8.0.1",
43
- "inquirer": "^9.2.15"
41
+ "@commitlint/prompt": "^19.6.0",
42
+ "inquirer": "^9.2.15",
43
+ "tinyexec": "^0.3.0"
44
44
  },
45
- "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
45
+ "gitHead": "d33cbb7d4fe06a4f4c95518b9c95ef2cad9cd648"
46
46
  }