@tscircuit/cli 0.0.207 → 0.0.209
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/.github/workflows/formatbot.yml +6 -6
- package/.github/workflows/test.yml +1 -1
- package/bun.lockb +0 -0
- package/cli/lib/cmd-fns/dev/derive-selector-from-pcb-component-id.ts +2 -2
- package/cli/lib/soupify/get-tmp-entrpoint-filepath.ts +3 -1
- package/cli/lib/soupify/soupify-with-core.ts +6 -1
- package/cli/lib/soupify/soupify.ts +1 -1
- package/dist/cli.js +69 -63
- package/example-project/src/MyCircuit.tsx +1 -7
- package/example-project/src/manual-edits.ts +1 -82
- package/frontend/views/HeaderMenu.tsx +2 -2
- package/package.json +8 -7
|
@@ -3,13 +3,7 @@ import { layout } from "@tscircuit/layout"
|
|
|
3
3
|
import manual_edits from "./manual-edits"
|
|
4
4
|
|
|
5
5
|
export const MyCircuit = () => (
|
|
6
|
-
<board
|
|
7
|
-
width="40mm"
|
|
8
|
-
height="40mm"
|
|
9
|
-
pcbX={0}
|
|
10
|
-
pcbY={0}
|
|
11
|
-
layout={layout().manualEdits(manual_edits)}
|
|
12
|
-
>
|
|
6
|
+
<board width="40mm" height="40mm" pcbX={0} pcbY={0}>
|
|
13
7
|
<resistor
|
|
14
8
|
name="R1"
|
|
15
9
|
resistance="20kohm"
|
|
@@ -52,87 +52,6 @@ export default {
|
|
|
52
52
|
relative_to: "group_center",
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
|
-
manual_trace_hints: [
|
|
56
|
-
{
|
|
57
|
-
pcb_port_selector: ".D9 > .pin2",
|
|
58
|
-
offsets: [
|
|
59
|
-
{
|
|
60
|
-
x: 38.92169691522466,
|
|
61
|
-
y: -2.3377796771400057,
|
|
62
|
-
via: false,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
x: 37.986379705415004,
|
|
66
|
-
y: -2.4045880492692646,
|
|
67
|
-
via: true,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
x: 35.04681133172754,
|
|
71
|
-
y: -2.5048006074631566,
|
|
72
|
-
via: true,
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
pcb_port_selector: ".D8 > .pin2",
|
|
78
|
-
offsets: [
|
|
79
|
-
{
|
|
80
|
-
x: 39.368100153443855,
|
|
81
|
-
y: 11.075329302388642,
|
|
82
|
-
via: false,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
x: 39.0431504551313,
|
|
86
|
-
y: -2.4100831775825498,
|
|
87
|
-
via: false,
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
pcb_port_selector: ".D6 > .pin2",
|
|
93
|
-
offsets: [
|
|
94
|
-
{
|
|
95
|
-
x: 27.898990889830188,
|
|
96
|
-
y: -7.126105014672912,
|
|
97
|
-
via: true,
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
pcb_port_selector: ".D7 > .pin2",
|
|
103
|
-
offsets: [
|
|
104
|
-
{
|
|
105
|
-
x: -8.911022990918022,
|
|
106
|
-
y: 12.104068965358355,
|
|
107
|
-
via: true,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
x: 31.337860341638805,
|
|
111
|
-
y: 8.65338014408593,
|
|
112
|
-
via: true,
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
x: 40.284252655475,
|
|
116
|
-
y: 7.931249822789734,
|
|
117
|
-
via: false,
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
x: 39.96330584601003,
|
|
121
|
-
y: -2.4995214848219867,
|
|
122
|
-
via: false,
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
pcb_port_selector: ".SW6 > .pin1",
|
|
128
|
-
offsets: [
|
|
129
|
-
{
|
|
130
|
-
x: 14.242563958561936,
|
|
131
|
-
y: -0.4071654915144425,
|
|
132
|
-
via: false,
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
],
|
|
55
|
+
manual_trace_hints: [],
|
|
137
56
|
edit_events: [],
|
|
138
57
|
}
|
|
@@ -294,8 +294,8 @@ export const HeaderMenu = () => {
|
|
|
294
294
|
@tscircuit/cli v{cliPackageJson.version}
|
|
295
295
|
</MenubarItem>
|
|
296
296
|
<MenubarItem disabled>
|
|
297
|
-
@tscircuit/
|
|
298
|
-
{cliPackageJson.dependencies?.["@tscircuit/
|
|
297
|
+
@tscircuit/core v
|
|
298
|
+
{cliPackageJson.dependencies?.["@tscircuit/core"]?.replace(
|
|
299
299
|
/\^/g,
|
|
300
300
|
"",
|
|
301
301
|
)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.209",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command line tool for developing, publishing and installing tscircuit circuits",
|
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
"build:dev-server": "bun run build:api && bun run build:frontend",
|
|
19
19
|
"build:api": "cd api && winterspec bundle-routes -i ./routes -o ./static-routes.ts",
|
|
20
20
|
"build:frontend": "vite build --config frontend/vite.config.ts && make-vfs --content-format string --dir frontend/dist --outfile ./frontend/dist/bundle.ts",
|
|
21
|
-
"test:init": "bun cli/cli.ts init --dir ./tmp/test --name test",
|
|
22
|
-
"update-deps": "bun add @tscircuit/builder@latest @tscircuit/react-fiber@latest @tscircuit/schematic-viewer@latest @tscircuit/pcb-viewer@latest @tscircuit/table-viewer@latest @tscircuit/3d-viewer@latest",
|
|
23
21
|
"format": "biome format . --write"
|
|
24
22
|
},
|
|
25
23
|
"bin": {
|
|
@@ -38,11 +36,13 @@
|
|
|
38
36
|
"@edge-runtime/primitives": "^4.1.0",
|
|
39
37
|
"@hono/node-server": "^1.8.2",
|
|
40
38
|
"@tscircuit/builder": "*",
|
|
41
|
-
"@tscircuit/core": "^0.0.
|
|
39
|
+
"@tscircuit/core": "^0.0.69",
|
|
42
40
|
"@tscircuit/props": "^0.0.62",
|
|
41
|
+
"@tscircuit/soup": "^0.0.71",
|
|
43
42
|
"archiver": "^7.0.1",
|
|
44
43
|
"axios": "^1.6.7",
|
|
45
44
|
"chokidar": "^3.6.0",
|
|
45
|
+
"circuit-json-to-connectivity-map": "^0.0.16",
|
|
46
46
|
"circuit-json-to-gerber": "^0.0.4",
|
|
47
47
|
"circuit-to-png": "^0.0.3",
|
|
48
48
|
"circuit-to-svg": "^0.0.22",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"hono": "^4.1.0",
|
|
59
59
|
"ignore": "^5.3.1",
|
|
60
60
|
"json5": "^2.2.3",
|
|
61
|
-
"kicad-converter": "^0.0.
|
|
61
|
+
"kicad-converter": "^0.0.7",
|
|
62
62
|
"kleur": "^4.1.5",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"memory-level": "^1.0.0",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"node-persist": "^4.0.1",
|
|
68
68
|
"open": "^10.1.0",
|
|
69
69
|
"perfect-cli": "^1.0.20",
|
|
70
|
+
"performance-now": "^2.1.0",
|
|
70
71
|
"posthog-node": "^4.0.1",
|
|
71
72
|
"prompts": "^2.4.2",
|
|
72
73
|
"redaxios": "^0.5.1",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"@tscircuit/soup-util": "*"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
87
|
-
"@biomejs/biome": "^1.9.
|
|
88
|
+
"@biomejs/biome": "^1.9.2",
|
|
88
89
|
"@headlessui/react": "^1.7.18",
|
|
89
90
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
90
91
|
"@radix-ui/react-context-menu": "^2.1.5",
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
"@tscircuit/manual-edit-events": "^0.0.4",
|
|
105
106
|
"@tscircuit/pcb-viewer": "^1.10.2",
|
|
106
107
|
"@tscircuit/schematic-viewer": "^1.2.14",
|
|
107
|
-
"@tscircuit/soup-util": "^0.0.
|
|
108
|
+
"@tscircuit/soup-util": "^0.0.28",
|
|
108
109
|
"@tscircuit/table-viewer": "0.0.8",
|
|
109
110
|
"@types/archiver": "^6.0.2",
|
|
110
111
|
"@types/bun": "^1.0.8",
|