@tscircuit/cli 0.0.164 → 0.0.166
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 +10 -7
- package/bun.lockb +0 -0
- package/cli/lib/cmd-fns/render.ts +2 -2
- package/dist/cli.js +6 -6
- package/package.json +2 -2
|
@@ -16,20 +16,23 @@ jobs:
|
|
|
16
16
|
with:
|
|
17
17
|
token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
|
|
18
18
|
|
|
19
|
-
- name: Setup
|
|
20
|
-
uses:
|
|
19
|
+
- name: Setup Bun
|
|
20
|
+
uses: oven-sh/setup-bun@v1
|
|
21
21
|
with:
|
|
22
|
-
|
|
22
|
+
bun-version: latest
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: bun install --frozen-lockfile
|
|
23
26
|
|
|
24
27
|
- name: Get @biomejs/biome version
|
|
25
28
|
id: get-biome-version
|
|
26
|
-
run: echo "BIOME_VERSION=$(
|
|
29
|
+
run: echo "BIOME_VERSION=$(bunx jq -r '.devDependencies["@biomejs/biome"]' package.json)" >> $GITHUB_OUTPUT
|
|
27
30
|
|
|
28
31
|
- name: Install @biomejs/biome
|
|
29
|
-
run:
|
|
32
|
+
run: bun add -d @biomejs/biome@${{ steps.get-biome-version.outputs.BIOME_VERSION }}
|
|
30
33
|
|
|
31
34
|
- name: Run formatter
|
|
32
|
-
run:
|
|
35
|
+
run: bunx @biomejs/biome format . --write
|
|
33
36
|
|
|
34
37
|
- name: Commit changes
|
|
35
38
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
@@ -38,4 +41,4 @@ jobs:
|
|
|
38
41
|
branch: ${{ github.head_ref }}
|
|
39
42
|
commit_user_name: tscircuitbot
|
|
40
43
|
commit_user_email: tscircuitbot@users.noreply.github.com
|
|
41
|
-
commit_author: tscircuitbot <tscircuitbot@users.noreply.github.com>
|
|
44
|
+
commit_author: tscircuitbot <tscircuitbot@users.noreply.github.com>
|
package/bun.lockb
CHANGED
|
Binary file
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { circuitToPng } from "circuit-to-png"
|
|
2
|
-
import fs from "fs"
|
|
3
1
|
import { soupify } from "cli/lib/soupify"
|
|
4
2
|
import type { AppContext } from "cli/lib/util/app-context"
|
|
3
|
+
import fs from "fs"
|
|
5
4
|
import path from "path"
|
|
6
5
|
|
|
7
6
|
export const renderCmd = async (
|
|
@@ -39,6 +38,7 @@ export const renderCmd = async (
|
|
|
39
38
|
ctx,
|
|
40
39
|
)
|
|
41
40
|
|
|
41
|
+
const { circuitToPng } = await import("circuit-to-png")
|
|
42
42
|
const soupBuffer = circuitToPng(soup, viewType)
|
|
43
43
|
|
|
44
44
|
fs.writeFileSync(outputFile, soupBuffer)
|