@tscircuit/cli 0.1.649 → 0.1.650

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 +7 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -74100,7 +74100,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
74100
74100
  import { execSync as execSync2 } from "node:child_process";
74101
74101
  var import_semver2 = __toESM2(require_semver2(), 1);
74102
74102
  // package.json
74103
- var version = "0.1.647";
74103
+ var version = "0.1.649";
74104
74104
  var package_default = {
74105
74105
  name: "@tscircuit/cli",
74106
74106
  version,
@@ -186832,9 +186832,13 @@ var registerBuild = (program3) => {
186832
186832
  if (options?.transpile) {
186833
186833
  validateMainInDist(projectDir, distDir);
186834
186834
  console.log("Transpiling entry file...");
186835
- const entryFile = mainEntrypoint || circuitFiles[0];
186835
+ const { mainEntrypoint: transpileEntrypoint } = await getBuildEntrypoints({
186836
+ fileOrDir: file,
186837
+ includeBoardFiles: false
186838
+ });
186839
+ const entryFile = transpileEntrypoint;
186836
186840
  if (!entryFile) {
186837
- console.error("No entry file found for transpilation");
186841
+ console.error("No entry file found for transpilation. Make sure you have a lib/index.ts or set mainEntrypoint in tscircuit.config.json");
186838
186842
  process.exit(1);
186839
186843
  }
186840
186844
  const transpileSuccess = await transpileFile({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.649",
3
+ "version": "0.1.650",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",