@tscircuit/cli 0.0.133 → 0.0.135

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.
@@ -32,6 +32,24 @@ export default {
32
32
  "y": 0
33
33
  },
34
34
  "relative_to": "group_center"
35
+ },
36
+ {
37
+ "_edit_event_id": "0.4555106760070762",
38
+ "selector": ".C1",
39
+ "center": {
40
+ "x": 0,
41
+ "y": 2.6666666666666665
42
+ },
43
+ "relative_to": "group_center"
44
+ },
45
+ {
46
+ "_edit_event_id": "0.6123290063979561",
47
+ "selector": ".R2",
48
+ "center": {
49
+ "x": 13.457749922536511,
50
+ "y": 5.576084911465589
51
+ },
52
+ "relative_to": "group_center"
35
53
  }
36
54
  ],
37
55
  manual_trace_hints: [],
@@ -22,7 +22,7 @@ export const startExportRequestWatcher = async (
22
22
  kleur.red(`Error in export request watcher: ${err.toString()}`)
23
23
  )
24
24
  }
25
- await new Promise((resolve) => setTimeout(resolve, 100))
25
+ await new Promise((resolve) => setTimeout(resolve, 1000))
26
26
  }
27
27
  })()
28
28
 
@@ -13,6 +13,7 @@ export const getProgram = (ctx: AppContext) => {
13
13
  .description("Run development server in current directory")
14
14
  .option("--cwd <cwd>", "Current working directory")
15
15
  .option("--port <port>", "Port to run dev server on")
16
+ .option("--no-cleanup", "Don't cleanup temporary files (for debugging)")
16
17
  .action((args) => CMDFN.dev(ctx, args))
17
18
 
18
19
  cmd
package/lib/soupify.ts CHANGED
@@ -18,7 +18,7 @@ export const soupify = async (
18
18
  filePath: string
19
19
  exportName?: string
20
20
  },
21
- ctx: { runtime: "node" | "bun" }
21
+ ctx: Pick<AppContext, "runtime" | "params">
22
22
  ) => {
23
23
  debug(`reading ${filePath}`)
24
24
  const targetFileContent = await readFile(filePath, "utf-8")
@@ -89,8 +89,10 @@ console.log(JSON.stringify(elements))
89
89
  const rawSoup = processResult.stdout.replace(/^[^\[]*/, "")
90
90
  const errText = processResult.stderr
91
91
 
92
- debug(`deleting ${tmpFilePath}`)
93
- await unlink(tmpFilePath)
92
+ if (ctx.params.cleanup !== false) {
93
+ debug(`deleting ${tmpFilePath}`)
94
+ await unlink(tmpFilePath)
95
+ }
94
96
 
95
97
  try {
96
98
  debug(`parsing result of soupify...`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.0.133",
3
+ "version": "0.0.135",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command line tool for developing, publishing and installing tscircuit circuits",