@tscircuit/cli 0.1.504 → 0.1.505

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 +21 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -72387,7 +72387,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
72387
72387
  import { execSync as execSync2 } from "node:child_process";
72388
72388
  var import_semver2 = __toESM2(require_semver2(), 1);
72389
72389
  // package.json
72390
- var version = "0.1.503";
72390
+ var version = "0.1.504";
72391
72391
  var package_default = {
72392
72392
  name: "@tscircuit/cli",
72393
72393
  version,
@@ -196292,9 +196292,29 @@ var buildFile = async (input, output, projectDir, options) => {
196292
196292
  }
196293
196293
  } catch (err) {
196294
196294
  console.error(`Build failed: ${err}`);
196295
+ if (err instanceof Error) {
196296
+ logTypeReexportHint(err, input);
196297
+ }
196295
196298
  return { ok: false };
196296
196299
  }
196297
196300
  };
196301
+ var TYPE_REEXPORT_ERROR_REGEX = /SyntaxError: export '([^']+)' not found in '([^']+)'/;
196302
+ var logTypeReexportHint = (error, entryFilePath) => {
196303
+ const match = String(error).match(TYPE_REEXPORT_ERROR_REGEX);
196304
+ if (!match)
196305
+ return;
196306
+ const [, exportName, fromSpecifier] = match;
196307
+ const entryFileName = path30.basename(entryFilePath);
196308
+ console.error([
196309
+ "",
196310
+ `It looks like "${entryFileName}" re-exports the type-only symbol "${exportName}" from "${fromSpecifier}" without the "type" modifier.`,
196311
+ "Type-only exports must be re-exported with `export type { ... }`.",
196312
+ "Try rewriting the statement as:",
196313
+ ` export type { ${exportName} } from "${fromSpecifier}"`,
196314
+ ""
196315
+ ].join(`
196316
+ `));
196317
+ };
196298
196318
 
196299
196319
  // cli/build/get-build-entrypoints.ts
196300
196320
  import fs32 from "node:fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.504",
3
+ "version": "0.1.505",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",