@vibgrate/cli 1.0.18 → 1.0.20
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.
|
@@ -80,7 +80,8 @@ var FileCache = class _FileCache {
|
|
|
80
80
|
static EXTRA_SKIP = /* @__PURE__ */ new Set([".nuxt", ".output", ".svelte-kit"]);
|
|
81
81
|
async _doWalk(rootDir) {
|
|
82
82
|
const results = [];
|
|
83
|
-
const
|
|
83
|
+
const cores = typeof os.availableParallelism === "function" ? os.availableParallelism() : os.cpus().length || 4;
|
|
84
|
+
const maxConcurrentReads = Math.max(8, Math.min(64, cores * 4));
|
|
84
85
|
const sem = new Semaphore(maxConcurrentReads);
|
|
85
86
|
const extraSkip = _FileCache.EXTRA_SKIP;
|
|
86
87
|
async function walk(dir) {
|
|
@@ -186,7 +187,8 @@ var FileCache = class _FileCache {
|
|
|
186
187
|
};
|
|
187
188
|
async function findFiles(rootDir, predicate) {
|
|
188
189
|
const results = [];
|
|
189
|
-
const
|
|
190
|
+
const cores = typeof os.availableParallelism === "function" ? os.availableParallelism() : os.cpus().length || 4;
|
|
191
|
+
const maxConcurrentReads = Math.max(8, Math.min(64, cores * 4));
|
|
190
192
|
const readDirSemaphore = new Semaphore(maxConcurrentReads);
|
|
191
193
|
async function walk(dir) {
|
|
192
194
|
let entries;
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-VXZT34Y5.js";
|
|
5
5
|
import {
|
|
6
6
|
baselineCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YWBGG2KK.js";
|
|
8
8
|
import {
|
|
9
9
|
VERSION,
|
|
10
10
|
dsnCommand,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readJsonFile,
|
|
16
16
|
scanCommand,
|
|
17
17
|
writeDefaultConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-T6WMUKLV.js";
|
|
19
19
|
|
|
20
20
|
// src/cli.ts
|
|
21
21
|
import { Command as Command4 } from "commander";
|
|
@@ -38,7 +38,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
|
|
|
38
38
|
console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
|
|
39
39
|
}
|
|
40
40
|
if (opts.baseline) {
|
|
41
|
-
const { runBaseline } = await import("./baseline-
|
|
41
|
+
const { runBaseline } = await import("./baseline-7KBX56UU.js");
|
|
42
42
|
await runBaseline(rootDir);
|
|
43
43
|
}
|
|
44
44
|
console.log("");
|
package/dist/index.js
CHANGED