@tscircuit/cli 0.0.109 → 0.0.111

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.
@@ -1,4 +1,4 @@
1
- import apiServer from "../../../dev-server-api/dist/bundle"
1
+ import apiServer from "../../../dev-server-api"
2
2
  import frontendVfs from "../../../dev-server-frontend/dist/bundle"
3
3
  import EdgeRuntimePrimitives from "@edge-runtime/primitives"
4
4
  import mime from "mime-types"
@@ -21,7 +21,7 @@ export const devServerRequestHandler = async (bunReq: Request) => {
21
21
  body: bunReq.body,
22
22
  })
23
23
 
24
- const response = await apiServer.makeRequest(req, {})
24
+ const response = await apiServer.makeRequest(req as any, {})
25
25
  return response
26
26
  } else if (requestType === "preview") {
27
27
  let frontendPath = url.pathname.replace("/preview", "")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command line tool for developing, publishing and installing tscircuit circuits",
@@ -18,7 +18,7 @@
18
18
  "build": "bun build:dev-server && npm run build:cli",
19
19
  "dev-with-test-project": "bun cli.ts dev --cwd ./tests/assets/example-project",
20
20
  "test:init": "bun cli.ts init --dir ./tmp/test --name test",
21
- "update-deps": "bun add @tscircuit/builder@latest @tscircuit/react-fiber@latest && cd dev-server-frontend && bun run update-deps && cd ../tests/assets/example-project && bun add @tscircuit/builder@latest @tscircuit/react-fiber@latest @tscircuit/layout@latest"
21
+ "update-deps": "bun add @tscircuit/builder@latest @tscircuit/react-fiber@latest && cd dev-server-frontend && bun run update-deps && cd ../tests/assets/example-project && bun run update-deps"
22
22
  },
23
23
  "bin": {
24
24
  "tsci": "./dist/cli.js"
@@ -37,7 +37,7 @@
37
37
  "@hono/node-server": "^1.8.2",
38
38
  "archiver": "^7.0.1",
39
39
  "axios": "^1.6.7",
40
- "better-sqlite3": "^9.4.3",
40
+ "better-sqlite3": "^11.1.2",
41
41
  "chokidar": "^3.6.0",
42
42
  "commander": "^12.0.0",
43
43
  "configstore": "^6.0.0",
@@ -75,9 +75,9 @@
75
75
  "@tscircuit/manual-edit-events": "*"
76
76
  },
77
77
  "devDependencies": {
78
- "@tscircuit/builder": "1.5.128",
78
+ "@tscircuit/builder": "*",
79
79
  "@tscircuit/layout": "^0.0.20",
80
- "@tscircuit/react-fiber": "^1.1.29",
80
+ "@tscircuit/react-fiber": "*",
81
81
  "@tscircuit/soup-util": "^0.0.1",
82
82
  "@tscircuit/manual-edit-events": "^0.0.4",
83
83
  "@types/archiver": "^6.0.2",
@@ -2,26 +2,28 @@ import { layout } from "@tscircuit/layout"
2
2
  import manual_edits from "../src/manual-edits"
3
3
 
4
4
  export const BasicBug = () => (
5
- <group
6
- layout={layout()
7
- .autoLayoutSchematic()
8
- .manualPcbPlacement(manual_edits.pcb_placements)}
9
- >
10
- <bug
11
- name="U2"
12
- schPortArrangement={{
13
- leftSize: 4,
14
- rightSize: 4,
15
- }}
16
- footprint="ssop16"
17
- pinLabels={{
18
- "1": "GND",
19
- "2": "VBUS",
20
- "3": "D-",
21
- "4": "D+",
22
- }}
23
- />
24
- <resistor name="R1" resistance="10kohm" footprint="0805" />
25
- <trace from=".U2 > .1" to=".R1 > .left" />
26
- </group>
5
+ <board pcbCenterX={0} pcbCenterY={0} width="20mm" height="20mm">
6
+ <group
7
+ layout={layout()
8
+ .autoLayoutSchematic()
9
+ .manualPcbPlacement(manual_edits.pcb_placements)}
10
+ >
11
+ <bug
12
+ name="U2"
13
+ schPortArrangement={{
14
+ leftSize: 4,
15
+ rightSize: 4,
16
+ }}
17
+ footprint="ssop16"
18
+ pinLabels={{
19
+ "1": "GND",
20
+ "2": "VBUS",
21
+ "3": "D-",
22
+ "4": "D+",
23
+ }}
24
+ />
25
+ <resistor name="R1" resistance="10kohm" footprint="0805" />
26
+ <trace from=".U2 > .1" to=".R1 > .left" />
27
+ </group>
28
+ </board>
27
29
  )
@@ -3,9 +3,12 @@
3
3
  "version": "1.2.26",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
+ "scripts": {
7
+ "update-deps": "bun add -f @tscircuit/builder@latest @tscircuit/react-fiber@latest @tscircuit/layout@latest"
8
+ },
6
9
  "dependencies": {
7
- "@tscircuit/builder": "^1.5.126",
8
- "@tscircuit/layout": "^0.0.21",
10
+ "@tscircuit/builder": "^1.5.134",
11
+ "@tscircuit/layout": "^0.0.24",
9
12
  "@tscircuit/react-fiber": "^1.1.29"
10
13
  }
11
14
  }
@@ -14,7 +14,26 @@ export default {
14
14
  manual_edit_id: "abcdef",
15
15
 
16
16
  // Manual pcb placements, added when you drag a footprint
17
- pcb_placements: [],
17
+ pcb_placements: [
18
+ {
19
+ "_edit_event_id": "0.6668756126702717",
20
+ "selector": ".U2",
21
+ "center": {
22
+ "x": -5.004250626566417,
23
+ "y": 0.13319298245614064
24
+ },
25
+ "relative_to": "group_center"
26
+ },
27
+ {
28
+ "_edit_event_id": "0.867524742177592",
29
+ "selector": ".R1",
30
+ "center": {
31
+ "x": 2.8351077694235585,
32
+ "y": 0
33
+ },
34
+ "relative_to": "group_center"
35
+ }
36
+ ],
18
37
  manual_trace_hints: [],
19
38
  edit_events: [],
20
39
  }