@tscircuit/cli 0.1.988 → 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.
package/dist/cli/main.js CHANGED
@@ -74413,7 +74413,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
74413
74413
  import { execSync as execSync2 } from "node:child_process";
74414
74414
  var import_semver2 = __toESM2(require_semver2(), 1);
74415
74415
  // package.json
74416
- var version = "0.1.987";
74416
+ var version = "0.1.988";
74417
74417
  var package_default = {
74418
74418
  name: "@tscircuit/cli",
74419
74419
  main: "dist/cli/main.js",
@@ -174850,11 +174850,11 @@ var applyCiBuildOptions = async ({
174850
174850
  return {
174851
174851
  resolvedOptions: {
174852
174852
  ...options,
174853
- previewImages: options?.previewImages ?? true,
174854
- transpile: options?.transpile ?? true,
174855
- site: options?.site ?? true,
174856
- useCdnJavascript: options?.useCdnJavascript ?? true,
174857
- ignoreErrors: options?.ignoreErrors ?? true,
174853
+ previewImages: options?.previewImages || true,
174854
+ transpile: options?.transpile || true,
174855
+ site: options?.site || true,
174856
+ useCdnJavascript: options?.useCdnJavascript || true,
174857
+ ignoreErrors: options?.ignoreErrors || true,
174858
174858
  kicadLibrary: options?.kicadLibrary ?? projectConfig2?.build?.kicadLibrary ?? false,
174859
174859
  kicadPcm: options?.kicadPcm ?? projectConfig2?.build?.kicadPcm ?? false
174860
174860
  },
@@ -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/dist/lib/index.js CHANGED
@@ -60432,7 +60432,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
60432
60432
  }));
60433
60433
  };
60434
60434
  // package.json
60435
- var version = "0.1.987";
60435
+ var version = "0.1.988";
60436
60436
  var package_default = {
60437
60437
  name: "@tscircuit/cli",
60438
60438
  main: "dist/cli/main.js",
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.988",
8
+ "version": "0.1.990",
9
9
  "devDependencies": {
10
10
  "@babel/standalone": "^7.26.9",
11
11
  "@biomejs/biome": "^1.9.4",