@tscircuit/runframe 0.0.315 → 0.0.316
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/preview.js
CHANGED
package/dist/runner.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
buttonVariants,
|
|
21
21
|
cn,
|
|
22
22
|
linkify
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TPTDESBD.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 () => {
|