altium-to-circuit-json 0.0.2 → 0.0.3
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/README.md +13 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -78,6 +78,19 @@ bun run test:update-svg
|
|
|
78
78
|
|
|
79
79
|
Every imported reference used by the test suite has a side-by-side SVG snapshot. The committed fixtures are generated from pinned upstream URLs and are not stored in this repository.
|
|
80
80
|
|
|
81
|
+
The TI SPRCAL9 / TMDS62LEVM Rev. B regression corpus includes all 57
|
|
82
|
+
schematic sheets and a top-copper PCB comparison. Its large downloaded source
|
|
83
|
+
files are checksum-verified and cached in CI. To also write the complete
|
|
84
|
+
converted Circuit JSON artifacts locally, run:
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
bun run convert:ti-reference
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
This creates `artifacts/ti-tmds62levm-rev-b/pcb.circuit.json`, one Circuit JSON
|
|
91
|
+
file per schematic sheet, and a conversion manifest. The artifact directory is
|
|
92
|
+
gitignored; the compact SVG regression snapshots remain committed.
|
|
93
|
+
|
|
81
94
|
## Development
|
|
82
95
|
|
|
83
96
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altium-to-circuit-json",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Convert Altium schematic and PCB documents into Circuit JSON",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsup-node lib/index.ts --format esm --dts --sourcemap --clean",
|
|
30
|
+
"convert:ti-reference": "bun run download-references && bun run scripts/convert-ti-reference.ts",
|
|
30
31
|
"download-references": "bun run scripts/download-references.ts",
|
|
31
32
|
"format": "biome format --write .",
|
|
32
33
|
"format:check": "biome format .",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"bun-match-svg": "^0.0.15",
|
|
49
50
|
"circuit-json-to-connectivity-map": "^0.0.25",
|
|
50
51
|
"circuit-to-svg": "^0.0.394",
|
|
52
|
+
"fflate": "^0.8.3",
|
|
51
53
|
"format-si-unit": "^0.0.11",
|
|
52
54
|
"schematic-symbols": "^0.0.238",
|
|
53
55
|
"sharp": "^0.35.3",
|