@tscircuit/cli 0.1.216 → 0.1.217

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 +3 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -63215,7 +63215,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
63215
63215
  import { execSync as execSync2 } from "node:child_process";
63216
63216
  var import_semver2 = __toESM2(require_semver2(), 1);
63217
63217
  // package.json
63218
- var version = "0.1.215";
63218
+ var version = "0.1.216";
63219
63219
  var package_default = {
63220
63220
  name: "@tscircuit/cli",
63221
63221
  version,
@@ -71443,7 +71443,8 @@ async function generateCircuitJson({
71443
71443
  })
71444
71444
  };
71445
71445
  debug11(`fsMap: ${abbreviateStringifyObject(fsMap)}`);
71446
- const MainComponent = await import(filePath);
71446
+ const resolvedFilePath = path21.resolve(process.cwd(), filePath);
71447
+ const MainComponent = await import(resolvedFilePath);
71447
71448
  const Component = MainComponent.default || (Object.keys(MainComponent).find((k) => k[0] === k[0].toUpperCase()) !== undefined ? MainComponent[Object.keys(MainComponent).find((k) => k[0] === k[0].toUpperCase())] : undefined);
71448
71449
  if (!Component) {
71449
71450
  throw new Error(`No component found in "${filePath}". Make sure you export a component.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.216",
3
+ "version": "0.1.217",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",