@tscircuit/cli 0.1.1559 → 0.1.1561

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.
@@ -11928,7 +11928,7 @@ async function generateCircuitJson({
11928
11928
  };
11929
11929
  }
11930
11930
 
11931
- // lib/shared/get-complete-platform-config.ts
11931
+ // lib/shared/get-platform-config-with-cli-defaults.ts
11932
11932
  import { createHash } from "node:crypto";
11933
11933
  import fs4 from "node:fs";
11934
11934
  import path4 from "node:path";
@@ -11956,7 +11956,7 @@ function createLocalCacheEngine(cacheDir = path4.join(process.cwd(), ".tscircuit
11956
11956
  }
11957
11957
  };
11958
11958
  }
11959
- function getCompletePlatformConfig(userConfig) {
11959
+ function getPlatformConfigWithCliDefaults(userConfig) {
11960
11960
  const basePlatformConfig = getPlatformConfig();
11961
11961
  const defaultConfig = {
11962
11962
  ...basePlatformConfig,
@@ -16323,12 +16323,12 @@ var handleBuildFile = async (filePath, outputPath, glbOutputPath, stepOutputPath
16323
16323
  process.chdir(projectDir);
16324
16324
  workerLog(`Generating circuit JSON for ${path14.relative(projectDir, filePath)}...`);
16325
16325
  await registerStaticAssetLoaders();
16326
- const completePlatformConfig = getCompletePlatformConfig(options?.platformConfig);
16326
+ const platformConfigWithCliDefaults = getPlatformConfigWithCliDefaults(options?.platformConfig);
16327
16327
  const normalizedInputPath = filePath.toLowerCase().replaceAll("\\", "/");
16328
16328
  const isPrebuiltCircuitJson = normalizedInputPath.endsWith(".circuit.json") || normalizedInputPath.endsWith("/circuit.json");
16329
16329
  const circuitJson = isPrebuiltCircuitJson ? loadCircuitJsonFromInputFile(filePath) : (await generateCircuitJson({
16330
16330
  filePath,
16331
- platformConfig: completePlatformConfig,
16331
+ platformConfig: platformConfigWithCliDefaults,
16332
16332
  injectedProps: options?.injectedProps,
16333
16333
  onAsyncEffectStatus: (asyncEffectName) => {
16334
16334
  workerStatus(`waiting on ${asyncEffectName}…`);