@tscircuit/cli 0.1.208 → 0.1.210

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
@@ -58,7 +58,7 @@ Commands:
58
58
  3d preview)
59
59
  setup Setup utilities like GitHub Actions
60
60
  upgrade Upgrade CLI to the latest version
61
- search <query> Search for footprints, CAD models or packages in
61
+ search [options] <query> Search for footprints, CAD models or packages in
62
62
  the tscircuit ecosystem
63
63
  import <query> Search JLCPCB or the tscircuit registry and import
64
64
  a component
package/dist/main.js CHANGED
@@ -62957,7 +62957,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
62957
62957
  import { execSync as execSync2 } from "node:child_process";
62958
62958
  var import_semver2 = __toESM2(require_semver2(), 1);
62959
62959
  // package.json
62960
- var version = "0.1.207";
62960
+ var version = "0.1.209";
62961
62961
  var package_default = {
62962
62962
  name: "@tscircuit/cli",
62963
62963
  version,
@@ -70885,7 +70885,8 @@ var registerSearch = (program3) => {
70885
70885
  json: { query }
70886
70886
  }).json();
70887
70887
  const jlcSearchUrl = "https://jlcsearch.tscircuit.com/api/search?limit=10&q=" + encodeURIComponent(query);
70888
- jlcResults = (await fetch(jlcSearchUrl).then((r) => r.json())).components;
70888
+ const jlcResponse = await fetch(jlcSearchUrl).then((r) => r.json());
70889
+ jlcResults = jlcResponse?.components ?? [];
70889
70890
  }
70890
70891
  const kicadFiles = await fetch("https://kicad-mod-cache.tscircuit.com/kicad_files.json").then((r) => r.json());
70891
70892
  const fuse = new Fuse(kicadFiles);
@@ -70901,7 +70902,7 @@ var registerSearch = (program3) => {
70901
70902
  if (kicadResults.length) {
70902
70903
  console.log(kleur_default.bold().underline(`Found ${kicadResults.length} footprint(s) from KiCad:`));
70903
70904
  kicadResults.forEach((path23, idx) => {
70904
- console.log(`${(idx + 1).toString().padStart(2, " ")}. ${path23.replace(".kicad_mod", "").replace(".pretty", "")}`);
70905
+ console.log(`${(idx + 1).toString().padStart(2, " ")}. kicad:${path23.replace(".kicad_mod", "").replace(".pretty", "")}`);
70905
70906
  });
70906
70907
  }
70907
70908
  if (!onlyKicad && results.packages.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.208",
3
+ "version": "0.1.210",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",