@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.
- package/dev-server-api/routes/api/dev_package_examples/create.ts +1 -1
- package/dev-server-api/routes/api/dev_package_examples/get.ts +1 -1
- package/dev-server-api/routes/api/dev_package_examples/update.ts +1 -1
- package/dev-server-api/src/db/zod-level-db.ts +2 -1
- package/dev-server-api/src/middlewares/with-debug-request-logging.ts +13 -0
- package/dev-server-api/src/with-winter-spec.ts +2 -1
- package/dev-server-api/tests/routes/dev_package_examples/update.test.ts +10 -0
- package/dist/cli.js +35 -21
- package/example-project/src/manual-edits.ts +18 -0
- package/lib/cmd-fns/dev/start-export-request-watcher.ts +1 -1
- package/lib/get-program.ts +1 -0
- package/lib/soupify.ts +5 -3
- package/package.json +1 -1
|
@@ -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,
|
|
25
|
+
await new Promise((resolve) => setTimeout(resolve, 1000))
|
|
26
26
|
}
|
|
27
27
|
})()
|
|
28
28
|
|
package/lib/get-program.ts
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
93
|
-
|
|
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...`)
|