AnasSarkiz/ble-pedometer
This code defines and configures various electronic hardware components such as surface-mount resistors, crystals, diodes, transistors, connectors, and switches with their physical footprints, schematic symbols, and 3D CAD models for PCB assembly.
- Version
- 1.0.7
- License
- unset
- Stars
- 0
scripts/check-fabrication.ts
import { getFabricationBlockers } from "../lib/get-fabrication-blockers"
const circuitJsonPath = process.argv[2]
if (!circuitJsonPath) throw new Error("Provide a freshly built circuit JSON path")
const circuitJson: unknown = await Bun.file(circuitJsonPath).json()
const blockers = getFabricationBlockers(circuitJson)
if (blockers.length > 0) {
console.error(blockers.join("\n"))
throw new Error(`Fabrication geometry blocked by ${blockers.length} issue(s)`)
}
console.log("Geometry gate passed. Independent CAM, assembly, RF and first-article sign-off still required.")