@tscircuit/cli 0.1.727 → 0.1.728
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/main.js
CHANGED
|
@@ -73245,6 +73245,7 @@ var projectConfigSchema = z.object({
|
|
|
73245
73245
|
ignoredFiles: z.array(z.string()).optional(),
|
|
73246
73246
|
includeBoardFiles: z.array(z.string()).optional(),
|
|
73247
73247
|
snapshotsDir: z.string().optional(),
|
|
73248
|
+
buildCommand: z.string().optional(),
|
|
73248
73249
|
build: z.object({
|
|
73249
73250
|
circuitJson: z.boolean().optional(),
|
|
73250
73251
|
kicadLibrary: z.boolean().optional(),
|
|
@@ -74123,7 +74124,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
|
|
|
74123
74124
|
import { execSync as execSync2 } from "node:child_process";
|
|
74124
74125
|
var import_semver2 = __toESM2(require_semver2(), 1);
|
|
74125
74126
|
// package.json
|
|
74126
|
-
var version = "0.1.
|
|
74127
|
+
var version = "0.1.727";
|
|
74127
74128
|
var package_default = {
|
|
74128
74129
|
name: "@tscircuit/cli",
|
|
74129
74130
|
version,
|
|
@@ -84785,11 +84786,12 @@ var availableGlobalConfigKeys = [
|
|
|
84785
84786
|
];
|
|
84786
84787
|
var availableProjectConfigKeys = [
|
|
84787
84788
|
"mainEntrypoint",
|
|
84788
|
-
"previewComponentPath"
|
|
84789
|
+
"previewComponentPath",
|
|
84790
|
+
"buildCommand"
|
|
84789
84791
|
];
|
|
84790
84792
|
var registerConfigSet = (program3) => {
|
|
84791
84793
|
const configCommand = program3.commands.find((c) => c.name() === "config");
|
|
84792
|
-
configCommand.command("set").description("Set a configuration value (global or project-specific)").argument("<key>", "Configuration key (e.g., alwaysCloneWithAuthorName, mainEntrypoint, previewComponentPath)").argument("<value>", "Value to set").action((key, value) => {
|
|
84794
|
+
configCommand.command("set").description("Set a configuration value (global or project-specific)").argument("<key>", "Configuration key (e.g., alwaysCloneWithAuthorName, mainEntrypoint, previewComponentPath, buildCommand)").argument("<value>", "Value to set").action((key, value) => {
|
|
84793
84795
|
if (availableGlobalConfigKeys.some((k) => k === key)) {
|
|
84794
84796
|
if (key === "alwaysCloneWithAuthorName") {
|
|
84795
84797
|
const booleanValue = value.toLowerCase() === "true";
|
|
@@ -84798,7 +84800,7 @@ var registerConfigSet = (program3) => {
|
|
|
84798
84800
|
}
|
|
84799
84801
|
} else if (availableProjectConfigKeys.some((k) => k === key)) {
|
|
84800
84802
|
const projectDir = process.cwd();
|
|
84801
|
-
if (key === "mainEntrypoint" || key === "previewComponentPath") {
|
|
84803
|
+
if (key === "mainEntrypoint" || key === "previewComponentPath" || key === "buildCommand") {
|
|
84802
84804
|
const projectConfig = loadProjectConfig(projectDir) ?? {};
|
|
84803
84805
|
projectConfig[key] = value;
|
|
84804
84806
|
if (saveProjectConfig(projectConfig, projectDir)) {
|
package/package.json
CHANGED
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
"type": "string",
|
|
37
37
|
"description": "Directory path for storing snapshots."
|
|
38
38
|
},
|
|
39
|
+
"buildCommand": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Override command used for cloud builds."
|
|
42
|
+
},
|
|
39
43
|
"build": {
|
|
40
44
|
"type": "object",
|
|
41
45
|
"additionalProperties": false,
|