batch-exec-cli 1.3.1 → 1.3.3

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.
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  高效批量命令执行工具,能够遍历目录内所有直接子目录并执行命令。
4
4
 
5
+ [![release status](https://github.com/chandq/batch-exec-cli/actions/workflows/release.yml/badge.svg)](https://github.com/chandq/batch-exec-cli/actions/workflows/release.yml)
6
+ [![batch-exec-cli](https://img.shields.io/github/package-json/v/chandq/batch-exec-cli?style=flat-square)](https://www.npmjs.com/package/batch-exec-cli)
7
+
5
8
  ## 功能特性
6
9
 
7
10
  - 🚀 高效遍历目标目录的所有直接子目录, 默认并行执行
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "batch-exec-cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Efficiently iterate through directories and execute commands with progress display and parallel execution",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -8,7 +8,6 @@
8
8
  "batch-exec": "src/cli.js"
9
9
  },
10
10
  "scripts": {
11
- "test": "echo 'Tests require Node.js >= 18.0.0 with --test support'",
12
11
  "lint": "eslint src/ test/"
13
12
  },
14
13
  "files": [
@@ -28,9 +27,9 @@
28
27
  ],
29
28
  "repository": {
30
29
  "type": "git",
31
- "url": "git+https://github.com/chandq/batch-exec.git"
30
+ "url": "git+https://github.com/chandq/batch-exec-cli.git"
32
31
  },
33
- "author": "",
32
+ "author": "chandq",
34
33
  "license": "MIT",
35
34
  "dependencies": {
36
35
  "minimist": "^1.2.8",
package/src/cli.js CHANGED
@@ -40,7 +40,6 @@ async function main() {
40
40
  }
41
41
 
42
42
  const skipPaths = await parseIgnoreFile(ignoreFilePath);
43
-
44
43
  if (argv.verbose) {
45
44
  console.log(bold('\n🚀 Batch Executor\n'));
46
45
  console.log(`Target directory: ${cyan(targetDir)}`);
@@ -7,7 +7,6 @@ export async function listDirectSubdirectories(targetDir, skipPatterns = []) {
7
7
 
8
8
  try {
9
9
  const entries = await fs.readdir(absoluteTargetDir, { withFileTypes: true });
10
-
11
10
  const subdirs = [];
12
11
 
13
12
  for (const entry of entries) {
File without changes