@tscircuit/cli 0.1.45 → 0.1.47

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/main.js +8 -8
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -394211,6 +394211,8 @@ var detectPackageManager = () => {
394211
394211
  return "pnpm";
394212
394212
  if (fs.existsSync("bun.lockb"))
394213
394213
  return "bun";
394214
+ if (fs.existsSync("bun.lock"))
394215
+ return "bun";
394214
394216
  return "npm";
394215
394217
  };
394216
394218
 
@@ -395497,7 +395499,7 @@ var package_default = {
395497
395499
  name: "@tscircuit/cli",
395498
395500
  main: "dist/main.js",
395499
395501
  type: "module",
395500
- version: "0.1.44",
395502
+ version: "0.1.46",
395501
395503
  bin: {
395502
395504
  tsci: "./dist/main.js"
395503
395505
  },
@@ -398972,19 +398974,17 @@ circuit.add(<MyCircuit />)
398972
398974
  }
398973
398975
  }
398974
398976
  async saveSnippet() {
398975
- const postEvent = async (event) => this.fsKy.post("api/events/create", {
398976
- json: { event_type: event },
398977
+ const postEvent = async (event, message) => this.fsKy.post("api/events/create", {
398978
+ json: { event_type: event, ...message ? { message } : {} },
398977
398979
  throwHttpErrors: false
398978
398980
  });
398979
398981
  await pushSnippet({
398980
398982
  filePath: this.componentFilePath,
398981
- onExit: (e) => {
398982
- console.error("Failed to save snippet", e);
398983
- postEvent("FAILED_TO_SAVE_SNIPPET");
398983
+ onExit: () => {
398984
398984
  },
398985
398985
  onError: (e) => {
398986
- console.error("Failed to save snippet", e);
398987
- postEvent("FAILED_TO_SAVE_SNIPPET");
398986
+ console.error("Failed to save snippet:- ", e);
398987
+ postEvent("FAILED_TO_SAVE_SNIPPET", e);
398988
398988
  },
398989
398989
  onSuccess: () => {
398990
398990
  postEvent("SNIPPET_SAVED");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tscircuit/cli",
3
3
  "main": "dist/main.js",
4
4
  "type": "module",
5
- "version": "0.1.45",
5
+ "version": "0.1.47",
6
6
  "bin": {
7
7
  "tsci": "./dist/main.js"
8
8
  },