@tscircuit/cli 0.0.164 → 0.0.165

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.
@@ -16,20 +16,23 @@ jobs:
16
16
  with:
17
17
  token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
18
18
 
19
- - name: Setup Node.js
20
- uses: actions/setup-node@v3
19
+ - name: Setup Bun
20
+ uses: oven-sh/setup-bun@v1
21
21
  with:
22
- node-version: '20'
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=$(node -p "require('./package.json').devDependencies['@biomejs/biome']")" >> $GITHUB_OUTPUT
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: npm install @biomejs/biome@${{ steps.get-biome-version.outputs.BIOME_VERSION }}
32
+ run: bun add -d @biomejs/biome@${{ steps.get-biome-version.outputs.BIOME_VERSION }}
30
33
 
31
34
  - name: Run formatter
32
- run: npx @biomejs/biome format . --write
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>
@@ -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)