@tscircuit/cli 0.1.1096 → 0.1.1097
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/main.js +11 -3
- package/dist/lib/index.js +2 -1
- package/package.json +1 -1
- package/types/tscircuit.config.schema.json +4 -0
package/dist/cli/main.js
CHANGED
|
@@ -71664,7 +71664,7 @@ var registerStaticAssetLoaders = () => {
|
|
|
71664
71664
|
// cli/main.ts
|
|
71665
71665
|
var import_perfect_cli = __toESM2(require_dist2(), 1);
|
|
71666
71666
|
// package.json
|
|
71667
|
-
var version = "0.1.
|
|
71667
|
+
var version = "0.1.1096";
|
|
71668
71668
|
var package_default = {
|
|
71669
71669
|
name: "@tscircuit/cli",
|
|
71670
71670
|
version,
|
|
@@ -75424,6 +75424,7 @@ var projectConfigSchema = z.object({
|
|
|
75424
75424
|
kicadPcm: z.boolean().optional(),
|
|
75425
75425
|
previewImages: z.boolean().optional(),
|
|
75426
75426
|
glbs: z.boolean().optional(),
|
|
75427
|
+
routingDisabled: z.boolean().optional(),
|
|
75427
75428
|
typescriptLibrary: z.boolean().optional()
|
|
75428
75429
|
}).optional()
|
|
75429
75430
|
});
|
|
@@ -81640,6 +81641,9 @@ var resolveBuildOptions = ({
|
|
|
81640
81641
|
if (!cliOptions?.glbs && configBuild?.glbs) {
|
|
81641
81642
|
configAppliedOpts.push("glbs");
|
|
81642
81643
|
}
|
|
81644
|
+
if (cliOptions?.routingDisabled === undefined && configBuild?.routingDisabled) {
|
|
81645
|
+
configAppliedOpts.push("routing-disabled");
|
|
81646
|
+
}
|
|
81643
81647
|
if (!cliOptions?.transpile && configBuild?.typescriptLibrary) {
|
|
81644
81648
|
configAppliedOpts.push("transpile");
|
|
81645
81649
|
}
|
|
@@ -81651,6 +81655,7 @@ var resolveBuildOptions = ({
|
|
|
81651
81655
|
kicadPcm: cliOptions?.kicadPcm ?? configBuild?.kicadPcm,
|
|
81652
81656
|
previewImages: cliOptions?.previewImages ?? configBuild?.previewImages,
|
|
81653
81657
|
glbs: cliOptions?.glbs ?? configBuild?.glbs,
|
|
81658
|
+
routingDisabled: cliOptions?.routingDisabled ?? configBuild?.routingDisabled,
|
|
81654
81659
|
transpile: cliOptions?.transpile ?? configBuild?.typescriptLibrary
|
|
81655
81660
|
};
|
|
81656
81661
|
return { options, configAppliedOpts };
|
|
@@ -82346,7 +82351,7 @@ var getOutputDirName = (relativePath) => {
|
|
|
82346
82351
|
return relativePath.replace(/(\.board|\.circuit)?\.tsx$/, "").replace(/\.circuit\.json$/, "");
|
|
82347
82352
|
};
|
|
82348
82353
|
var registerBuild = (program2) => {
|
|
82349
|
-
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-config", "Ignore options from tscircuit.config.json").option("--disable-pcb", "Disable PCB outputs").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("--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-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) => {
|
|
82354
|
+
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-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("--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-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) => {
|
|
82350
82355
|
try {
|
|
82351
82356
|
const transpileExplicitlyRequested = options?.transpile === true;
|
|
82352
82357
|
const resolvedRoot = path39.resolve(process.cwd());
|
|
@@ -82393,13 +82398,16 @@ var registerBuild = (program2) => {
|
|
|
82393
82398
|
fileOrDir: fileOrDirForBuild
|
|
82394
82399
|
});
|
|
82395
82400
|
const platformConfig = (() => {
|
|
82396
|
-
if (!resolvedOptions?.disablePcb && !resolvedOptions?.disablePartsEngine) {
|
|
82401
|
+
if (!resolvedOptions?.disablePcb && !resolvedOptions?.routingDisabled && !resolvedOptions?.disablePartsEngine) {
|
|
82397
82402
|
return;
|
|
82398
82403
|
}
|
|
82399
82404
|
const config = {};
|
|
82400
82405
|
if (resolvedOptions?.disablePcb) {
|
|
82401
82406
|
config.pcbDisabled = true;
|
|
82402
82407
|
}
|
|
82408
|
+
if (resolvedOptions?.routingDisabled) {
|
|
82409
|
+
config.routingDisabled = true;
|
|
82410
|
+
}
|
|
82403
82411
|
if (resolvedOptions?.disablePartsEngine) {
|
|
82404
82412
|
config.partsEngineDisabled = true;
|
|
82405
82413
|
}
|
package/dist/lib/index.js
CHANGED
|
@@ -60435,7 +60435,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
60435
60435
|
}));
|
|
60436
60436
|
};
|
|
60437
60437
|
// package.json
|
|
60438
|
-
var version = "0.1.
|
|
60438
|
+
var version = "0.1.1096";
|
|
60439
60439
|
var package_default = {
|
|
60440
60440
|
name: "@tscircuit/cli",
|
|
60441
60441
|
version,
|
|
@@ -67743,6 +67743,7 @@ var projectConfigSchema = z21.object({
|
|
|
67743
67743
|
kicadPcm: z21.boolean().optional(),
|
|
67744
67744
|
previewImages: z21.boolean().optional(),
|
|
67745
67745
|
glbs: z21.boolean().optional(),
|
|
67746
|
+
routingDisabled: z21.boolean().optional(),
|
|
67746
67747
|
typescriptLibrary: z21.boolean().optional()
|
|
67747
67748
|
}).optional()
|
|
67748
67749
|
});
|
package/package.json
CHANGED
|
@@ -96,6 +96,10 @@
|
|
|
96
96
|
"type": "boolean",
|
|
97
97
|
"description": "Enable GLB 3D model outputs for each circuit in build."
|
|
98
98
|
},
|
|
99
|
+
"routingDisabled": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"description": "Disable routing during circuit generation in build."
|
|
102
|
+
},
|
|
99
103
|
"typescriptLibrary": {
|
|
100
104
|
"type": "boolean",
|
|
101
105
|
"description": "Enable TypeScript library output in build."
|