@tscircuit/cli 0.1.1224 → 0.1.1225

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
@@ -99964,7 +99964,7 @@ var import_perfect_cli = __toESM2(require_dist2(), 1);
99964
99964
  // lib/getVersion.ts
99965
99965
  import { createRequire as createRequire2 } from "node:module";
99966
99966
  // package.json
99967
- var version = "0.1.1223";
99967
+ var version = "0.1.1224";
99968
99968
  var package_default = {
99969
99969
  name: "@tscircuit/cli",
99970
99970
  version,
@@ -103787,6 +103787,7 @@ var projectConfigSchema = z.object({
103787
103787
  kicadPcm: z.boolean().optional(),
103788
103788
  previewImages: z.boolean().optional(),
103789
103789
  glbs: z.boolean().optional(),
103790
+ workerTimeoutMs: z.number().int().positive().optional(),
103790
103791
  routingDisabled: z.boolean().optional(),
103791
103792
  typescriptLibrary: z.boolean().optional()
103792
103793
  }).optional()
@@ -110911,7 +110912,8 @@ var getWorkerEntrypointPath = () => {
110911
110912
  };
110912
110913
  async function buildFilesWithWorkerPool(options) {
110913
110914
  const cancellationError = new Error("Build cancelled due fatal error");
110914
- const workerJobTimeoutMs = Number.parseInt(process.env.TSCIRCUIT_BUILD_WORKER_TIMEOUT_MS || "180000", 10);
110915
+ const envWorkerTimeoutMs = Number.parseInt(process.env.TSCIRCUIT_BUILD_WORKER_TIMEOUT_MS || "", 10);
110916
+ const workerJobTimeoutMs = Number.isFinite(envWorkerTimeoutMs) ? envWorkerTimeoutMs : options.workerJobTimeoutMs ?? 300000;
110915
110917
  const poolConcurrency = Math.max(1, Math.min(options.concurrency, options.files.length));
110916
110918
  const pool = new ThreadWorkerPool({
110917
110919
  concurrency: poolConcurrency,
@@ -111279,6 +111281,7 @@ var registerBuild = (program2) => {
111279
111281
  projectDir,
111280
111282
  concurrency: concurrencyValue,
111281
111283
  buildOptions,
111284
+ workerJobTimeoutMs: projectConfig?.build?.workerTimeoutMs,
111282
111285
  stopOnFatal: true,
111283
111286
  onLog: (lines) => {
111284
111287
  for (const line of lines) {
package/dist/lib/index.js CHANGED
@@ -60678,7 +60678,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
60678
60678
  }));
60679
60679
  };
60680
60680
  // package.json
60681
- var version = "0.1.1223";
60681
+ var version = "0.1.1224";
60682
60682
  var package_default = {
60683
60683
  name: "@tscircuit/cli",
60684
60684
  version,
@@ -68150,6 +68150,7 @@ var projectConfigSchema = z21.object({
68150
68150
  kicadPcm: z21.boolean().optional(),
68151
68151
  previewImages: z21.boolean().optional(),
68152
68152
  glbs: z21.boolean().optional(),
68153
+ workerTimeoutMs: z21.number().int().positive().optional(),
68153
68154
  routingDisabled: z21.boolean().optional(),
68154
68155
  typescriptLibrary: z21.boolean().optional()
68155
68156
  }).optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.1224",
3
+ "version": "0.1.1225",
4
4
  "main": "dist/cli/main.js",
5
5
  "exports": {
6
6
  ".": "./dist/cli/main.js",
@@ -115,6 +115,12 @@
115
115
  "type": "boolean",
116
116
  "description": "Enable GLB 3D model outputs for each circuit in build."
117
117
  },
118
+ "workerTimeoutMs": {
119
+ "type": "number",
120
+ "minimum": 1,
121
+ "multipleOf": 1,
122
+ "description": "Timeout in milliseconds for each build worker job."
123
+ },
118
124
  "routingDisabled": {
119
125
  "type": "boolean",
120
126
  "description": "Disable routing during circuit generation in build."