@tscircuit/cli 0.1.498 → 0.1.499

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 +4 -4
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -72387,7 +72387,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
72387
72387
  import { execSync as execSync2 } from "node:child_process";
72388
72388
  var import_semver2 = __toESM2(require_semver2(), 1);
72389
72389
  // package.json
72390
- var version = "0.1.497";
72390
+ var version = "0.1.498";
72391
72391
  var package_default = {
72392
72392
  name: "@tscircuit/cli",
72393
72393
  version,
@@ -94507,7 +94507,7 @@ async function generateCircuitJson({
94507
94507
 
94508
94508
  // lib/shared/export-snippet.ts
94509
94509
  var writeFileAsync = promisify3(fs26.writeFile);
94510
- var ALLOWED_FORMATS = [
94510
+ var ALLOWED_EXPORT_FORMATS = [
94511
94511
  "json",
94512
94512
  "circuit-json",
94513
94513
  "schematic-svg",
@@ -94545,7 +94545,7 @@ var exportSnippet = async ({
94545
94545
  onError = (message) => console.error(message),
94546
94546
  onSuccess = (result) => console.log(result)
94547
94547
  }) => {
94548
- if (!ALLOWED_FORMATS.includes(format)) {
94548
+ if (!ALLOWED_EXPORT_FORMATS.includes(format)) {
94549
94549
  onError(`Invalid format: ${format}`);
94550
94550
  return onExit(1);
94551
94551
  }
@@ -94841,7 +94841,7 @@ var resultToCsv = (result) => {
94841
94841
  import path28 from "node:path";
94842
94842
  import { promises as fs28 } from "node:fs";
94843
94843
  var registerExport = (program3) => {
94844
- program3.command("export").description("Export tscircuit code to various formats").argument("<file>", "Path to the package file").option("-f, --format <format>", "Output format").option("-o, --output <path>", "Output file path").option("--disable-parts-engine", "Disable the parts engine").action(async (file, options) => {
94844
+ program3.command("export").description("Export tscircuit code to various formats").argument("<file>", "Path to the package file").option("-f, --format <format>", `Output format (${ALLOWED_EXPORT_FORMATS.join(", ")})`).option("-o, --output <path>", "Output file path").option("--disable-parts-engine", "Disable the parts engine").action(async (file, options) => {
94845
94845
  const formatOption = options.format ?? "json";
94846
94846
  const platformConfig = options.disablePartsEngine === true ? { partsEngineDisabled: true } : undefined;
94847
94847
  if (formatOption === "spice") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.498",
3
+ "version": "0.1.499",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",