@tscircuit/cli 0.1.283 → 0.1.285

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/main.js +12 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -87533,7 +87533,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
87533
87533
  import { execSync as execSync2 } from "node:child_process";
87534
87534
  var import_semver2 = __toESM2(require_semver2(), 1);
87535
87535
  // package.json
87536
- var version = "0.1.282";
87536
+ var version = "0.1.284";
87537
87537
  var package_default = {
87538
87538
  name: "@tscircuit/cli",
87539
87539
  version,
@@ -111247,7 +111247,16 @@ async function generateCircuitJson({
111247
111247
  if (!Component) {
111248
111248
  throw new Error(`No component found in "${filePath}". Make sure you export a component.`);
111249
111249
  }
111250
+ console.log("adding component");
111250
111251
  runner.add(/* @__PURE__ */ jsxDEV(Component, {}, undefined, false, undefined, this));
111252
+ runner.on("asyncEffect:start", (effect) => {
111253
+ console.log("asyncEffect:start", effect);
111254
+ });
111255
+ runner.on("asyncEffect:end", (effect) => {
111256
+ console.log("asyncEffect:end", effect);
111257
+ });
111258
+ console.log("boardRenderPhaseStarted");
111259
+ runner.render();
111251
111260
  await runner.renderUntilSettled();
111252
111261
  const circuitJson = await runner.getCircuitJson();
111253
111262
  if (saveToFile) {
@@ -213419,7 +213428,6 @@ function analyzeCircuitJson(circuitJson) {
213419
213428
  // cli/build/build-file.ts
213420
213429
  var buildFile = async (input, output, projectDir, options) => {
213421
213430
  try {
213422
- console.log("Generating circuit JSON...");
213423
213431
  const result = await generateCircuitJson({
213424
213432
  filePath: input,
213425
213433
  platformConfig: options?.platformConfig
@@ -214463,7 +214471,6 @@ var registerBuild = (program3) => {
214463
214471
  if (hasErrors && !options?.ignoreErrors) {
214464
214472
  process.exit(1);
214465
214473
  }
214466
- console.log("Build complete!");
214467
214474
  if (options?.previewImages) {
214468
214475
  console.log("Generating preview images...");
214469
214476
  await buildPreviewImages({
@@ -214480,6 +214487,8 @@ var registerBuild = (program3) => {
214480
214487
  fs30.writeFileSync(path29.join(distDir, "index.html"), indexHtml);
214481
214488
  fs30.writeFileSync(path29.join(distDir, "standalone.min.js"), standalone_min_default);
214482
214489
  }
214490
+ console.log("Build complete!");
214491
+ process.exit(0);
214483
214492
  });
214484
214493
  };
214485
214494
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.283",
3
+ "version": "0.1.285",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",