Skip to content

Commit 40f5950

Browse files
authored
switch to bun, fixes (#15)
1 parent f4e7fde commit 40f5950

File tree

7 files changed

+12
-2441
lines changed

7 files changed

+12
-2441
lines changed

bun.lockb

32 Bytes
Binary file not shown.

lib/convertCircuitJsonToReadableNetlist.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { su } from "@tscircuit/soup-util"
1+
import { su } from "@tscircuit/circuit-json-util"
22
import type {
33
AnyCircuitElement,
44
CircuitJson,
@@ -37,16 +37,15 @@ export const convertCircuitJsonToReadableNetlist = (
3737

3838
if (component.ftype === "simple_resistor") {
3939
componentDescription = `${component.display_resistance}${
40-
footprint ? ` ${footprint}` : ""} resistor`
40+
footprint ? ` ${footprint}` : ""
41+
} resistor`
4142
} else if (component.ftype === "simple_capacitor") {
4243
componentDescription = `${component.display_capacitance}${
43-
footprint ? ` ${footprint}` : ""} capacitor`
44+
footprint ? ` ${footprint}` : ""
45+
} capacitor`
4446
} else if (component.ftype === "simple_chip") {
4547
const manufacturerPartNumber = component.manufacturer_part_number
46-
componentDescription = [
47-
manufacturerPartNumber,
48-
footprint,
49-
]
48+
componentDescription = [manufacturerPartNumber, footprint]
5049
.filter(Boolean)
5150
.join(", ")
5251
} else {

lib/generateNetName.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { su } from "@tscircuit/soup-util"
1+
import { su } from "@tscircuit/circuit-json-util"
22
import type { AnyCircuitElement, AnySourceComponent } from "circuit-json"
33
import { getReadableNameForPin } from "./getReadableNameForPin"
44
import { scorePhrase } from "./scorePhrase"

lib/getReadableNameForPin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { su } from "@tscircuit/soup-util"
1+
import { su } from "@tscircuit/circuit-json-util"
22
import type {
33
AnyCircuitElement,
44
CircuitJson,

0 commit comments

Comments
 (0)