@tscircuit/cli 0.1.989 → 0.1.990

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/main.js +5 -2
  2. package/package.json +1 -1
package/dist/cli/main.js CHANGED
@@ -175970,8 +175970,9 @@ class WorkerPool {
175970
175970
  }
175971
175971
  async function buildFilesWithWorkerPool(options) {
175972
175972
  const cancellationError = new Error("Build cancelled due fatal error");
175973
+ const poolConcurrency = Math.max(1, Math.min(options.concurrency, options.files.length));
175973
175974
  const pool = new WorkerPool({
175974
- concurrency: options.concurrency,
175975
+ concurrency: poolConcurrency,
175975
175976
  onLog: options.onLog,
175976
175977
  stopOnFatal: options.stopOnFatal,
175977
175978
  cancellationError
@@ -175999,7 +176000,9 @@ async function buildFilesWithWorkerPool(options) {
175999
176000
  throw settledResult.reason;
176000
176001
  }
176001
176002
  }
176002
- await pool.terminate();
176003
+ if (typeof Bun === "undefined") {
176004
+ await pool.terminate();
176005
+ }
176003
176006
  return results;
176004
176007
  }
176005
176008
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  ".": "./dist/cli/main.js",
6
6
  "./lib": "./dist/lib/index.js"
7
7
  },
8
- "version": "0.1.989",
8
+ "version": "0.1.990",
9
9
  "devDependencies": {
10
10
  "@babel/standalone": "^7.26.9",
11
11
  "@biomejs/biome": "^1.9.4",