@tscircuit/runframe 0.0.315 → 0.0.317

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.
@@ -988,7 +988,7 @@ var RenderLogViewer = ({
988
988
  };
989
989
 
990
990
  // package.json
991
- var version = "0.0.314";
991
+ var version = "0.0.316";
992
992
 
993
993
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
994
994
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
package/dist/preview.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  PcbViewerWithContainerHeight,
7
7
  SchematicViewer,
8
8
  linkify
9
- } from "./chunk-MZVSWVSS.js";
9
+ } from "./chunk-MAJ736KB.js";
10
10
  export {
11
11
  BomTable,
12
12
  CadViewer,
package/dist/runner.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  buttonVariants,
21
21
  cn,
22
22
  linkify
23
- } from "./chunk-MZVSWVSS.js";
23
+ } from "./chunk-MAJ736KB.js";
24
24
 
25
25
  // lib/components/RunFrame/RunFrame.tsx
26
26
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";
@@ -338,22 +338,6 @@ var RunFrame = (props) => {
338
338
  setIsRunning(false);
339
339
  return;
340
340
  }
341
- if (!props.entrypoint) {
342
- setError({
343
- error: "No entrypoint provided. Please specify an entrypoint file.",
344
- stack: ""
345
- });
346
- setIsRunning(false);
347
- return;
348
- }
349
- if (!fsMapObj[props.entrypoint]?.trim()) {
350
- setError({
351
- error: "No files provided. Please provide at least one file with code to execute.",
352
- stack: ""
353
- });
354
- setIsRunning(false);
355
- return;
356
- }
357
341
  const wasTriggeredByRunButton = props.showRunButton && runCountTrigger !== lastRunCountTriggerRef.current;
358
342
  if (lastFsMapRef.current && circuitJson) {
359
343
  const changes = getChangesBetweenFsMaps(lastFsMapRef.current, fsMap);
@@ -370,7 +354,7 @@ var RunFrame = (props) => {
370
354
  return;
371
355
  }
372
356
  lastFsMapRef.current = fsMap;
373
- lastEntrypointRef.current = props.entrypoint;
357
+ lastEntrypointRef.current = props.entrypoint ?? null;
374
358
  lastRunCountTriggerRef.current = runCountTrigger;
375
359
  setIsRunning(true);
376
360
  const runWorker = async () => {