seveibar/pd-dual-stepper-controller

Bottom-side PCB silkscreen artwork consisting of embedded mirrored TS Circuit SVG logos, with via-clearance-aware lower-board placement.

Version
0.1.0
License
unset
Stars
0

scripts/analyze-style.ts

import { analyzeSchematicPlacement } from "../vendor/schematic-style-analysis";
const file = process.argv[2] ?? "dist/schematic/circuit.json";
const analysis = analyzeSchematicPlacement(await Bun.file(file).json());
await Bun.write(
	"reports/schematic-style.json",
	JSON.stringify(analysis.getIssues(), null, 2),
);
console.log(analysis.toString());
console.log("Issue count:", analysis.getIssues().length);

if (analysis.getIssues().length) process.exitCode = 1;