@tscircuit/cli 0.1.102 → 0.1.103

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
@@ -50,6 +50,8 @@ Commands:
50
50
  config Manage tscircuit CLI configuration
51
51
  export [options] <file> Export tscircuit code to various formats
52
52
  add <component> Add a tscircuit component package to your project
53
+ remove <component> Remove a tscircuit component package from your
54
+ project
53
55
  upgrade Upgrade CLI to the latest version
54
56
  search <query> Search for snippets in the tscircuit registry
55
57
  help [command] display help for command
package/dist/main.js CHANGED
@@ -433496,7 +433496,7 @@ import readline from "node:readline";
433496
433496
  import { execSync as execSync2 } from "node:child_process";
433497
433497
  var import_semver = __toESM2(require_semver2(), 1);
433498
433498
  // package.json
433499
- var version = "0.1.101";
433499
+ var version = "0.1.102";
433500
433500
  var package_default = {
433501
433501
  name: "@tscircuit/cli",
433502
433502
  version,
@@ -464797,7 +464797,7 @@ var registerRemove = (program3) => {
464797
464797
 
464798
464798
  // cli/main.ts
464799
464799
  var program2 = new Command;
464800
- program2.name("tsci").description("CLI for developing tscircuit snippets").version(getVersion());
464800
+ program2.name("tsci").description("CLI for developing tscircuit snippets");
464801
464801
  registerInit(program2);
464802
464802
  registerDev(program2);
464803
464803
  registerClone(program2);
@@ -464815,6 +464815,13 @@ registerAdd(program2);
464815
464815
  registerRemove(program2);
464816
464816
  registerUpgradeCommand(program2);
464817
464817
  registerSearch(program2);
464818
+ if (process.argv.includes("--version") || process.argv.includes("-v") || process.argv.includes("-V")) {
464819
+ console.log(getVersion());
464820
+ process.exit(0);
464821
+ }
464822
+ program2.command("version").description("Print CLI version").action(() => {
464823
+ console.log(getVersion());
464824
+ });
464818
464825
  if (process.argv.length === 2) {
464819
464826
  import_perfect_cli.perfectCli(program2, process.argv);
464820
464827
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",