@tscircuit/cli 0.1.137 → 0.1.138

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 +6 -5
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -442169,7 +442169,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
442169
442169
  import { execSync as execSync2 } from "node:child_process";
442170
442170
  var import_semver2 = __toESM2(require_semver2(), 1);
442171
442171
  // package.json
442172
- var version = "0.1.136";
442172
+ var version = "0.1.137";
442173
442173
  var package_default = {
442174
442174
  name: "@tscircuit/cli",
442175
442175
  version,
@@ -495951,7 +495951,8 @@ var CircuitRunner = class {
495951
495951
  // lib/shared/generate-circuit-json.ts
495952
495952
  var import_make_vfs2 = __toESM2(require_dist8(), 1);
495953
495953
  var import_debug21 = __toESM2(require_src2(), 1);
495954
- import path21 from "node:path";
495954
+ import path21 from "node:path/posix";
495955
+ import { relative as relative6 } from "node:path";
495955
495956
  import fs21 from "node:fs";
495956
495957
  var debug14 = import_debug21.default("tsci:generate-circuit-json");
495957
495958
  var ALLOWED_FILE_EXTENSIONS = [
@@ -495973,7 +495974,7 @@ async function generateCircuitJson({
495973
495974
  const runner = new CircuitRunner;
495974
495975
  const projectDir = path21.dirname(filePath);
495975
495976
  const resolvedOutputDir = outputDir || projectDir;
495976
- const relativeComponentPath = path21.relative(projectDir, filePath);
495977
+ const relativeComponentPath = relative6(projectDir, filePath);
495977
495978
  const baseFileName = outputFileName || path21.basename(filePath).replace(/\.[^.]+$/, "");
495978
495979
  const outputPath = path21.join(resolvedOutputDir, `${baseFileName}.circuit.json`);
495979
495980
  debug14(`Project directory: ${projectDir}`);
@@ -496390,9 +496391,9 @@ var registerBuild = (program3) => {
496390
496391
  hasErrors = true;
496391
496392
  }
496392
496393
  for (const filePath of circuitFiles) {
496393
- const relative6 = path25.relative(projectDir, filePath);
496394
+ const relative7 = path25.relative(projectDir, filePath);
496394
496395
  const isCircuit = filePath.endsWith(".circuit.tsx");
496395
- const outputPath = isCircuit ? path25.join(distDir, relative6.replace(/\.circuit\.tsx$/, ""), "circuit.json") : path25.join(distDir, "circuit.json");
496396
+ const outputPath = isCircuit ? path25.join(distDir, relative7.replace(/\.circuit\.tsx$/, ""), "circuit.json") : path25.join(distDir, "circuit.json");
496396
496397
  const ok = await buildFile(filePath, outputPath, projectDir, options);
496397
496398
  if (!ok)
496398
496399
  hasErrors = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",