@tscircuit/cli 0.1.1174 → 0.1.1175
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/dist/cli/build/build.worker.js +3 -3
- package/dist/cli/main.js +6 -5
- package/dist/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -11877,7 +11877,7 @@ var EMPTY_IMAGE_FORMAT_SELECTION = {
|
|
|
11877
11877
|
};
|
|
11878
11878
|
var hasAnyImageFormatSelected = (selection) => selection.threeDPngs || selection.pcbPngs || selection.pcbSvgs || selection.schematicSvgs;
|
|
11879
11879
|
var hasNewOutputFlags = (options) => Boolean(options?.pngs || options?.pcbPng || options?.svgs || options?.pcbSvgs || options?.schematicSvgs);
|
|
11880
|
-
var hasEstablishedOutputFlags = (options) => Boolean(options?.["3d"] || options?.pcbOnly || options?.schematicOnly);
|
|
11880
|
+
var hasEstablishedOutputFlags = (options) => Boolean(options?.["3d"] || options?.["3dPng"] || options?.pcbOnly || options?.schematicOnly);
|
|
11881
11881
|
var resolveImageFormatSelection = (options) => {
|
|
11882
11882
|
const hasNewFlags = hasNewOutputFlags(options);
|
|
11883
11883
|
const hasEstablishedFlags = hasEstablishedOutputFlags(options);
|
|
@@ -11890,7 +11890,7 @@ var resolveImageFormatSelection = (options) => {
|
|
|
11890
11890
|
}
|
|
11891
11891
|
if (!hasNewFlags && hasEstablishedFlags) {
|
|
11892
11892
|
const selection2 = {
|
|
11893
|
-
threeDPngs: Boolean(options?.["3d"]),
|
|
11893
|
+
threeDPngs: Boolean(options?.["3d"] || options?.["3dPng"]),
|
|
11894
11894
|
pcbPngs: false,
|
|
11895
11895
|
pcbSvgs: true,
|
|
11896
11896
|
schematicSvgs: true
|
|
@@ -11919,7 +11919,7 @@ var resolveImageFormatSelection = (options) => {
|
|
|
11919
11919
|
if (options?.schematicSvgs) {
|
|
11920
11920
|
selection.schematicSvgs = true;
|
|
11921
11921
|
}
|
|
11922
|
-
if (options?.pngs || options?.["3d"]) {
|
|
11922
|
+
if (options?.pngs || options?.["3d"] || options?.["3dPng"]) {
|
|
11923
11923
|
selection.threeDPngs = true;
|
|
11924
11924
|
}
|
|
11925
11925
|
if (options?.pcbOnly && !options?.schematicOnly) {
|
package/dist/cli/main.js
CHANGED
|
@@ -98409,7 +98409,7 @@ var import_perfect_cli = __toESM2(require_dist2(), 1);
|
|
|
98409
98409
|
// lib/getVersion.ts
|
|
98410
98410
|
import { createRequire as createRequire2 } from "node:module";
|
|
98411
98411
|
// package.json
|
|
98412
|
-
var version = "0.1.
|
|
98412
|
+
var version = "0.1.1173";
|
|
98413
98413
|
var package_default = {
|
|
98414
98414
|
name: "@tscircuit/cli",
|
|
98415
98415
|
version,
|
|
@@ -108576,7 +108576,7 @@ var EMPTY_IMAGE_FORMAT_SELECTION = {
|
|
|
108576
108576
|
};
|
|
108577
108577
|
var hasAnyImageFormatSelected = (selection) => selection.threeDPngs || selection.pcbPngs || selection.pcbSvgs || selection.schematicSvgs;
|
|
108578
108578
|
var hasNewOutputFlags = (options) => Boolean(options?.pngs || options?.pcbPng || options?.svgs || options?.pcbSvgs || options?.schematicSvgs);
|
|
108579
|
-
var hasEstablishedOutputFlags = (options) => Boolean(options?.["3d"] || options?.pcbOnly || options?.schematicOnly);
|
|
108579
|
+
var hasEstablishedOutputFlags = (options) => Boolean(options?.["3d"] || options?.["3dPng"] || options?.pcbOnly || options?.schematicOnly);
|
|
108580
108580
|
var resolveImageFormatSelection = (options) => {
|
|
108581
108581
|
const hasNewFlags = hasNewOutputFlags(options);
|
|
108582
108582
|
const hasEstablishedFlags = hasEstablishedOutputFlags(options);
|
|
@@ -108589,7 +108589,7 @@ var resolveImageFormatSelection = (options) => {
|
|
|
108589
108589
|
}
|
|
108590
108590
|
if (!hasNewFlags && hasEstablishedFlags) {
|
|
108591
108591
|
const selection2 = {
|
|
108592
|
-
threeDPngs: Boolean(options?.["3d"]),
|
|
108592
|
+
threeDPngs: Boolean(options?.["3d"] || options?.["3dPng"]),
|
|
108593
108593
|
pcbPngs: false,
|
|
108594
108594
|
pcbSvgs: true,
|
|
108595
108595
|
schematicSvgs: true
|
|
@@ -108618,7 +108618,7 @@ var resolveImageFormatSelection = (options) => {
|
|
|
108618
108618
|
if (options?.schematicSvgs) {
|
|
108619
108619
|
selection.schematicSvgs = true;
|
|
108620
108620
|
}
|
|
108621
|
-
if (options?.pngs || options?.["3d"]) {
|
|
108621
|
+
if (options?.pngs || options?.["3d"] || options?.["3dPng"]) {
|
|
108622
108622
|
selection.threeDPngs = true;
|
|
108623
108623
|
}
|
|
108624
108624
|
if (options?.pcbOnly && !options?.schematicOnly) {
|
|
@@ -109376,7 +109376,7 @@ var getOutputDirName = (relativePath) => {
|
|
|
109376
109376
|
return relativePath.replace(/(\.board|\.circuit)?\.tsx$/, "").replace(/\.circuit\.json$/, "");
|
|
109377
109377
|
};
|
|
109378
109378
|
var registerBuild = (program2) => {
|
|
109379
|
-
program2.command("build").description("Run tscircuit eval and output circuit json").argument("[file]", "Path to the entry file").option("--ci", "Run install and optional prebuild/build commands (or default CI build)").option("--ignore-errors", "Do not exit with code 1 on errors").option("--ignore-warnings", "Do not log warnings").option("--ignore-netlist-drc", "Ignore netlist DRC errors/warnings").option("--ignore-pin-specification-drc", "Ignore pin-specification DRC errors/warnings").option("--ignore-placement-drc", "Ignore placement DRC errors/warnings").option("--ignore-routing-drc", "Ignore routing DRC errors/warnings").option("--ignore-config", "Ignore options from tscircuit.config.json").option("--disable-pcb", "Disable PCB outputs").option("--routing-disabled", "Disable routing during circuit generation").option("--disable-parts-engine", "Disable the parts engine").option("--site", "Generate a static site in the dist directory").option("--transpile", "Transpile the entry file to JavaScript").option("--preview-images", "Generate preview images in the dist directory").option("--all-images", "Generate preview images for every successful build output").option("--pngs", "Generate PNG outputs during build generation").option("--pcb-png", "Generate PCB PNG outputs during build generation").option("--svgs", "Generate SVG outputs during build generation").option("--pcb-svgs", "Generate PCB SVG outputs during build generation").option("--schematic-svgs", "Generate schematic SVG outputs during build generation").option("--3d", "Generate 3D PNG outputs during build generation").option("--pcb-only", "Generate only PCB SVG outputs during build generation").option("--schematic-only", "Generate only schematic SVG outputs during build generation").option("--kicad-project", "Generate KiCad project directories for each successful build output").option("--kicad-project-zip", "Generate a zipped KiCad project for each successful build output").option("--kicad-library", "Generate KiCad library in dist/kicad-library").option("--kicad-library-name <name>", "Specify the name of the KiCad library").option("--preview-gltf", "Generate a GLTF file from the preview entrypoint").option("--glbs", "Generate GLB 3D model files for every successful build").option("--profile", "Log per-circuit circuit.json generation time during build").option("--kicad-pcm", "Generate KiCad PCM (Plugin and Content Manager) assets in dist/pcm").option("--use-cdn-javascript", "Use CDN-hosted JavaScript instead of bundled standalone file for --site").option("--concurrency <number>", "Number of files to build in parallel (default: 1)", "1").option("--inject-props <json>", "Inject JSON props into the built file's default export").option("--inject-props-file <path>", "Inject JSON props from a file into the built file's default export").action(async (file, options) => {
|
|
109379
|
+
program2.command("build").description("Run tscircuit eval and output circuit json").argument("[file]", "Path to the entry file").option("--ci", "Run install and optional prebuild/build commands (or default CI build)").option("--ignore-errors", "Do not exit with code 1 on errors").option("--ignore-warnings", "Do not log warnings").option("--ignore-netlist-drc", "Ignore netlist DRC errors/warnings").option("--ignore-pin-specification-drc", "Ignore pin-specification DRC errors/warnings").option("--ignore-placement-drc", "Ignore placement DRC errors/warnings").option("--ignore-routing-drc", "Ignore routing DRC errors/warnings").option("--ignore-config", "Ignore options from tscircuit.config.json").option("--disable-pcb", "Disable PCB outputs").option("--routing-disabled", "Disable routing during circuit generation").option("--disable-parts-engine", "Disable the parts engine").option("--site", "Generate a static site in the dist directory").option("--transpile", "Transpile the entry file to JavaScript").option("--preview-images", "Generate preview images in the dist directory").option("--all-images", "Generate preview images for every successful build output").option("--pngs", "Generate PNG outputs during build generation").option("--pcb-png", "Generate PCB PNG outputs during build generation").option("--svgs", "Generate SVG outputs during build generation").option("--pcb-svgs", "Generate PCB SVG outputs during build generation").option("--schematic-svgs", "Generate schematic SVG outputs during build generation").option("--3d-png", "Generate 3D PNG outputs during build generation").option("--3d", "Generate 3D PNG outputs during build generation").option("--pcb-only", "Generate only PCB SVG outputs during build generation").option("--schematic-only", "Generate only schematic SVG outputs during build generation").option("--kicad-project", "Generate KiCad project directories for each successful build output").option("--kicad-project-zip", "Generate a zipped KiCad project for each successful build output").option("--kicad-library", "Generate KiCad library in dist/kicad-library").option("--kicad-library-name <name>", "Specify the name of the KiCad library").option("--preview-gltf", "Generate a GLTF file from the preview entrypoint").option("--glbs", "Generate GLB 3D model files for every successful build").option("--profile", "Log per-circuit circuit.json generation time during build").option("--kicad-pcm", "Generate KiCad PCM (Plugin and Content Manager) assets in dist/pcm").option("--use-cdn-javascript", "Use CDN-hosted JavaScript instead of bundled standalone file for --site").option("--concurrency <number>", "Number of files to build in parallel (default: 1)", "1").option("--inject-props <json>", "Inject JSON props into the built file's default export").option("--inject-props-file <path>", "Inject JSON props from a file into the built file's default export").action(async (file, options) => {
|
|
109380
109380
|
try {
|
|
109381
109381
|
const transpileExplicitlyRequested = options?.transpile === true;
|
|
109382
109382
|
const resolvedRoot = path39.resolve(process.cwd());
|
|
@@ -109830,6 +109830,7 @@ var registerBuild = (program2) => {
|
|
|
109830
109830
|
resolvedOptions?.svgs && "svgs",
|
|
109831
109831
|
resolvedOptions?.pcbSvgs && "pcb-svgs",
|
|
109832
109832
|
resolvedOptions?.schematicSvgs && "schematic-svgs",
|
|
109833
|
+
resolvedOptions?.["3dPng"] && "3d-png",
|
|
109833
109834
|
resolvedOptions?.["3d"] && "3d",
|
|
109834
109835
|
resolvedOptions?.pcbOnly && "pcb-only",
|
|
109835
109836
|
resolvedOptions?.schematicOnly && "schematic-only",
|
package/dist/lib/index.js
CHANGED
|
@@ -60678,7 +60678,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
60678
60678
|
}));
|
|
60679
60679
|
};
|
|
60680
60680
|
// package.json
|
|
60681
|
-
var version = "0.1.
|
|
60681
|
+
var version = "0.1.1173";
|
|
60682
60682
|
var package_default = {
|
|
60683
60683
|
name: "@tscircuit/cli",
|
|
60684
60684
|
version,
|