@vesk/vesk-cli 0.2.74 → 0.2.76

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/dist/cli.js +4 -2
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -52377,7 +52377,8 @@ A module-scope statement runs the moment the browser evaluates the chunk, so a s
52377
52377
  return { name: entry.name, code: finalCode };
52378
52378
  };
52379
52379
  const effectiveChunkEntries = options?.skipRouteChunks ? chunkEntries.filter((e) => e.name === SHARED_CHUNK_NAME) : chunkEntries;
52380
- const CHUNK_CONCURRENCY = Math.max(1, Math.min(6, (availableParallelism?.() ?? 4) - 1));
52380
+ const envConcurrency = process.env.VESK_CHUNK_CONCURRENCY ? Number(process.env.VESK_CHUNK_CONCURRENCY) : NaN;
52381
+ const CHUNK_CONCURRENCY = Number.isFinite(envConcurrency) && envConcurrency >= 1 ? Math.floor(envConcurrency) : Math.max(1, Math.min(6, (availableParallelism?.() ?? 4) - 1));
52381
52382
  const built = await mapWithConcurrency(effectiveChunkEntries, CHUNK_CONCURRENCY, buildChunkEntry);
52382
52383
  for (const c of built) {
52383
52384
  if (c !== null) chunks.push(c);
@@ -59462,7 +59463,8 @@ A module-scope statement runs the moment the browser evaluates the chunk, so a s
59462
59463
  return { name: entry.name, code: finalCode };
59463
59464
  };
59464
59465
  const effectiveChunkEntries = options?.skipRouteChunks ? chunkEntries.filter((e) => e.name === SHARED_CHUNK_NAME2) : chunkEntries;
59465
- const CHUNK_CONCURRENCY = Math.max(1, Math.min(6, (availableParallelism2?.() ?? 4) - 1));
59466
+ const envConcurrency = process.env.VESK_CHUNK_CONCURRENCY ? Number(process.env.VESK_CHUNK_CONCURRENCY) : NaN;
59467
+ const CHUNK_CONCURRENCY = Number.isFinite(envConcurrency) && envConcurrency >= 1 ? Math.floor(envConcurrency) : Math.max(1, Math.min(6, (availableParallelism2?.() ?? 4) - 1));
59466
59468
  const built = await mapWithConcurrency2(effectiveChunkEntries, CHUNK_CONCURRENCY, buildChunkEntry);
59467
59469
  for (const c of built) {
59468
59470
  if (c !== null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesk/vesk-cli",
3
- "version": "0.2.74",
3
+ "version": "0.2.76",
4
4
  "type": "module",
5
5
  "description": "Vesk — compiler-first framework for the post-VDOM web. vesk dev, vesk build.",
6
6
  "bin": {
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "main": "./dist/cli.js",
10
10
  "dependencies": {
11
- "@vesk/adapter": "^0.2.74",
12
- "@vesk/compiler": "^0.2.74",
13
- "@vesk/plugin-tailwind": "^0.2.74",
14
- "@vesk/runtime": "^0.2.74",
11
+ "@vesk/adapter": "^0.2.76",
12
+ "@vesk/compiler": "^0.2.76",
13
+ "@vesk/plugin-tailwind": "^0.2.76",
14
+ "@vesk/runtime": "^0.2.76",
15
15
  "esrap": "^2.3.0",
16
16
  "typescript": "^5.8.0",
17
17
  "ws": "^8.18.0",