@tscircuit/cli 0.1.142 → 0.1.143

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/README.md CHANGED
@@ -54,7 +54,7 @@ Commands:
54
54
  add <component> Add a tscircuit component package to your project
55
55
  remove <component> Remove a tscircuit component package from your
56
56
  project
57
- snapshot [options] Generate schematic and PCB snapshots (add --3d for
57
+ snapshot [options] [file] Generate schematic and PCB snapshots (add --3d for
58
58
  3d preview)
59
59
  setup Setup utilities like GitHub Actions
60
60
  upgrade Upgrade CLI to the latest version
package/dist/main.js CHANGED
@@ -442238,7 +442238,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
442238
442238
  import { execSync as execSync2 } from "node:child_process";
442239
442239
  var import_semver2 = __toESM2(require_semver2(), 1);
442240
442240
  // package.json
442241
- var version = "0.1.141";
442241
+ var version = "0.1.142";
442242
442242
  var package_default = {
442243
442243
  name: "@tscircuit/cli",
442244
442244
  version,
@@ -498814,7 +498814,9 @@ var snapshotProject = async ({
498814
498814
  if (mismatches.length > 0) {
498815
498815
  onError(`Snapshot mismatch:
498816
498816
  ${mismatches.join(`
498817
- `)}`);
498817
+ `)}
498818
+
498819
+ Run with --update to fix.`);
498818
498820
  return onExit(1);
498819
498821
  }
498820
498822
  onSuccess("All snapshots match");
@@ -498875,6 +498877,7 @@ jobs:
498875
498877
  on:
498876
498878
  push:
498877
498879
  branches: [main]
498880
+ pull_request:
498878
498881
 
498879
498882
  jobs:
498880
498883
  snapshot:
@@ -498883,14 +498886,7 @@ jobs:
498883
498886
  - uses: actions/checkout@v4
498884
498887
  - uses: oven-sh/setup-bun@v2
498885
498888
  - run: bun install
498886
- - run: bunx tsci snapshot --update
498887
- - name: Commit snapshots
498888
- run: |
498889
- git config --global user.name "github-actions[bot]"
498890
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
498891
- git add .
498892
- git commit -m "Update snapshots" || echo "No changes to commit"
498893
- git push
498889
+ - run: bunx tsci snapshot
498894
498890
  `;
498895
498891
  writeFileIfNotExists(path27.join(workflowsDir, "tscircuit-build.yml"), buildWorkflow);
498896
498892
  writeFileIfNotExists(path27.join(workflowsDir, "tscircuit-snapshot.yml"), snapshotWorkflow);
@@ -498907,7 +498903,7 @@ var registerSetup = (program3) => {
498907
498903
  {
498908
498904
  title: "GitHub Action",
498909
498905
  value: "github-action",
498910
- description: "Automatically build, check and commit snapshots to the main branch",
498906
+ description: "Automatically build and check snapshots on push/pull-request",
498911
498907
  selected: true
498912
498908
  }
498913
498909
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.142",
3
+ "version": "0.1.143",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",