@tscircuit/cli 0.1.1817 → 0.1.1818

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.
Files changed (2) hide show
  1. package/dist/cli/main.js +18 -1
  2. package/package.json +1 -1
package/dist/cli/main.js CHANGED
@@ -301898,7 +301898,24 @@ var registerCheckSchematicPlacement = (program2) => {
301898
301898
  // cli/check/shorts/register.ts
301899
301899
  import { mkdir, writeFile } from "node:fs/promises";
301900
301900
  import path49 from "node:path";
301901
- var loadCheckShorts = async () => await Promise.resolve().then(() => (init_dist3(), exports_dist2));
301901
+ var CHECK_SHORTS_CDN_URL = "https://jscdn.tscircuit.com/@tscircuit/check-shorts/latest/+esm";
301902
+ var importCheckShortsFromCdn = async (url2) => await import(url2);
301903
+ var importCheckShortsFromPackage = async () => await Promise.resolve().then(() => (init_dist3(), exports_dist2));
301904
+ var loadCheckShorts = async (options = {}) => {
301905
+ const importFromCdn = options.importFromCdn ?? importCheckShortsFromCdn;
301906
+ const preferCdn = options.preferCdn ?? process.env.TSCI_TEST_MODE !== "true";
301907
+ if (!preferCdn)
301908
+ return importCheckShortsFromPackage();
301909
+ try {
301910
+ return await importFromCdn(CHECK_SHORTS_CDN_URL);
301911
+ } catch (cdnError) {
301912
+ try {
301913
+ return await importCheckShortsFromPackage();
301914
+ } catch (packageError) {
301915
+ throw new AggregateError([cdnError, packageError], "Failed to load @tscircuit/check-shorts from jscdn or the installed CLI package");
301916
+ }
301917
+ }
301918
+ };
301902
301919
  var parsePixelsPerMm = (value) => {
301903
301920
  if (!value)
301904
301921
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.1817",
3
+ "version": "0.1.1818",
4
4
  "main": "dist/cli/main.js",
5
5
  "exports": {
6
6
  ".": "./dist/cli/main.js",