@tscircuit/cli 0.0.84 → 0.0.85

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.
@@ -44,9 +44,9 @@ export const startEditEventWatcher = async (
44
44
  const last_recorded_update_time =
45
45
  last_edit_event_update_time[dev_package_example_id]
46
46
 
47
- // TODO use last_edit_event_updated_at
48
47
  if (
49
- last_recorded_update_time !== dev_package_example.last_updated_at
48
+ last_recorded_update_time !==
49
+ dev_package_example.edit_events_last_updated_at
50
50
  ) {
51
51
  console.log(
52
52
  kleur.gray(
@@ -58,7 +58,7 @@ export const startEditEventWatcher = async (
58
58
  )
59
59
 
60
60
  last_edit_event_update_time[dev_package_example_id] =
61
- dev_package_example.last_updated_at // TODO last_edit_event_updated_at
61
+ dev_package_example.edit_events_last_updated_at // TODO last_edit_event_updated_at
62
62
 
63
63
  console.log(kleur.gray(` getting new edit events...`))
64
64
 
@@ -91,6 +91,11 @@ export const startEditEventWatcher = async (
91
91
  `Multiple manual edit files found, tsci currently doesn't know how to handle this, you should go upvote an issue`
92
92
  )
93
93
  )
94
+ for (let i = 0; i < manual_edit_files.length; i++) {
95
+ console.log(
96
+ kleur.gray(` file ${i + 1}: ${manual_edit_files[i]}`)
97
+ )
98
+ }
94
99
  continue
95
100
  }
96
101
 
@@ -200,6 +205,11 @@ export const startEditEventWatcher = async (
200
205
  Path.join(ctx.cwd, manual_edit_file),
201
206
  ts_manual_edits_file.getFullText()
202
207
  )
208
+ await devServerAxios.post("/api/dev_package_examples/update", {
209
+ dev_package_example_id,
210
+ edit_events_last_applied_at:
211
+ dev_package_example.edit_events_last_updated_at,
212
+ })
203
213
  }
204
214
  }
205
215
  }
@@ -13,7 +13,7 @@ export const startFsWatcher = async (
13
13
  },
14
14
  ctx: { runtime: "node" | "bun" }
15
15
  ) => {
16
- const watcher = chokidar.watch(`${cwd}/**/*.tsx`, {
16
+ const watcher = chokidar.watch([`${cwd}/**/*.tsx`, `${cwd}/**/*.ts`], {
17
17
  ignored: /node_modules/,
18
18
  persistent: true,
19
19
  })
@@ -23,6 +23,7 @@ export const startFsWatcher = async (
23
23
  should_run: true,
24
24
  }
25
25
  watcher.on("change", async (path) => {
26
+ console.log(path)
26
27
  if (path.endsWith(".__tmp_entrypoint.tsx")) return
27
28
  console.log(`File ${path} has been changed`)
28
29
  // TODO analyze to determine which examples were impacted
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command line tool for developing, publishing and installing tscircuit circuits",
@@ -10,7 +10,7 @@
10
10
  "bootstrap:ci": "bun i --frozen-lockfile && cd dev-server-api && bun i --frozen-lockfile && cd ../dev-server-frontend && bun i --frozen-lockfile",
11
11
  "start": "bun cli.ts",
12
12
  "dev": "TSCI_DEV_SERVER_DB=$(pwd)/.tscircuit/dev-server.sqlite concurrently 'cd dev-server-api && bun run build && bun start' 'cd dev-server-frontend && bun start' 'bun run dev-with-test-project'",
13
- "clear": "rm -rf .tscircuit",
13
+ "clear": "rm -rf .tscircuit ./dev-server-api/.edgespec",
14
14
  "start:dev-server": "bun build:dev-server && bun cli.ts dev -y --cwd ./tests/assets/example-project",
15
15
  "build:dev-server": "cd dev-server-api && bun run build && cd ../dev-server-frontend && bun run build",
16
16
  "build:dev-server:api": "cd dev-server-api && bun run build",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@edge-runtime/primitives": "^4.1.0",
38
38
  "@hono/node-server": "^1.8.2",
39
- "@tscircuit/builder": "^1.5.86",
39
+ "@tscircuit/builder": "^1.5.87",
40
40
  "@tscircuit/react-fiber": "^1.0.39",
41
41
  "@tscircuit/soup-util": "^0.0.1",
42
42
  "archiver": "^7.0.1",
@@ -8,7 +8,7 @@
8
8
  "name": "example-project",
9
9
  "version": "1.2.26",
10
10
  "dependencies": {
11
- "@tscircuit/builder": "^1.5.86",
11
+ "@tscircuit/builder": "^1.5.87",
12
12
  "@tscircuit/react-fiber": "^1.0.39"
13
13
  }
14
14
  },
@@ -29,9 +29,9 @@
29
29
  "integrity": "sha512-iB+oaYyaVK1hQ0cODubnoSDg4gGYL9cp/4ad7G1b9Z0/IqehPztp5qE3KP2mV9Ns0UYmzwvtkEhTCmKUuhorbg=="
30
30
  },
31
31
  "node_modules/@tscircuit/builder": {
32
- "version": "1.5.86",
33
- "resolved": "https://registry.npmjs.org/@tscircuit/builder/-/builder-1.5.86.tgz",
34
- "integrity": "sha512-hZZvpo6t84kd66BfLE120eTLgoEUv42iEjxtQS6IeOUXk7y+pSMYwS16L+HHjmivKKRx0BOO+KmYFRsqi18mdw==",
32
+ "version": "1.5.87",
33
+ "resolved": "https://registry.npmjs.org/@tscircuit/builder/-/builder-1.5.87.tgz",
34
+ "integrity": "sha512-ITtSXjOpHL4J03HemsVtnFl3DfFc0ELTctk5XfhYAdYHKvy+ege6EKWiYRT90CMLb6N0r9+6NaZUaHALJLgYRw==",
35
35
  "dependencies": {
36
36
  "@lume/kiwi": "^0.1.0",
37
37
  "@tscircuit/footprints": "^0.0.14",
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
7
- "@tscircuit/builder": "^1.5.86",
7
+ "@tscircuit/builder": "^1.5.87",
8
8
  "@tscircuit/react-fiber": "^1.0.39"
9
9
  }
10
10
  }
@@ -19,8 +19,8 @@ export default {
19
19
  "_edit_event_id": "0.6467684918884489",
20
20
  "selector": ".U2",
21
21
  "center": {
22
- "x": -8.818617267820716,
23
- "y": 1.937762847202471
22
+ "x": 13.777148607991913,
23
+ "y": -10.354434189987284
24
24
  },
25
25
  "relative_to": "group_center"
26
26
  },
@@ -28,8 +28,8 @@ export default {
28
28
  "_edit_event_id": "0.37279140805799216",
29
29
  "selector": ".R1",
30
30
  "center": {
31
- "x": 6.01944432662744,
32
- "y": -5.1630193208064625
31
+ "x": 5.433378371344073,
32
+ "y": -6.95083299460385
33
33
  },
34
34
  "relative_to": "group_center"
35
35
  }