@tscircuit/cli 0.1.730 → 0.1.731

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
+ prebuildCommand: z.string().optional(),
73248
73249
  buildCommand: z.string().optional(),
73249
73250
  build: z.object({
73250
73251
  circuitJson: z.boolean().optional(),
@@ -74124,7 +74125,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
74124
74125
  import { execSync as execSync2 } from "node:child_process";
74125
74126
  var import_semver2 = __toESM2(require_semver2(), 1);
74126
74127
  // package.json
74127
- var version = "0.1.729";
74128
+ var version = "0.1.730";
74128
74129
  var package_default = {
74129
74130
  name: "@tscircuit/cli",
74130
74131
  version,
@@ -84815,11 +84816,12 @@ var availableGlobalConfigKeys = [
84815
84816
  var availableProjectConfigKeys = [
84816
84817
  "mainEntrypoint",
84817
84818
  "previewComponentPath",
84819
+ "prebuildCommand",
84818
84820
  "buildCommand"
84819
84821
  ];
84820
84822
  var registerConfigSet = (program3) => {
84821
84823
  const configCommand = program3.commands.find((c) => c.name() === "config");
84822
- 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) => {
84824
+ configCommand.command("set").description("Set a configuration value (global or project-specific)").argument("<key>", "Configuration key (e.g., alwaysCloneWithAuthorName, mainEntrypoint, previewComponentPath, prebuildCommand, buildCommand)").argument("<value>", "Value to set").action((key, value) => {
84823
84825
  if (availableGlobalConfigKeys.some((k) => k === key)) {
84824
84826
  if (key === "alwaysCloneWithAuthorName") {
84825
84827
  const booleanValue = value.toLowerCase() === "true";
@@ -84828,7 +84830,7 @@ var registerConfigSet = (program3) => {
84828
84830
  }
84829
84831
  } else if (availableProjectConfigKeys.some((k) => k === key)) {
84830
84832
  const projectDir = process.cwd();
84831
- if (key === "mainEntrypoint" || key === "previewComponentPath" || key === "buildCommand") {
84833
+ if (key === "mainEntrypoint" || key === "previewComponentPath" || key === "prebuildCommand" || key === "buildCommand") {
84832
84834
  const projectConfig = loadProjectConfig(projectDir) ?? {};
84833
84835
  projectConfig[key] = value;
84834
84836
  if (saveProjectConfig(projectConfig, projectDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.730",
3
+ "version": "0.1.731",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",
@@ -36,6 +36,10 @@
36
36
  "type": "string",
37
37
  "description": "Directory path for storing snapshots."
38
38
  },
39
+ "prebuildCommand": {
40
+ "type": "string",
41
+ "description": "Command to run before builds."
42
+ },
39
43
  "buildCommand": {
40
44
  "type": "string",
41
45
  "description": "Override command used for cloud builds."