@tscircuit/cli 0.1.783 → 0.1.784
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 +15 -8
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -74129,7 +74129,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
|
|
|
74129
74129
|
import { execSync as execSync2 } from "node:child_process";
|
|
74130
74130
|
var import_semver2 = __toESM2(require_semver2(), 1);
|
|
74131
74131
|
// package.json
|
|
74132
|
-
var version = "0.1.
|
|
74132
|
+
var version = "0.1.783";
|
|
74133
74133
|
var package_default = {
|
|
74134
74134
|
name: "@tscircuit/cli",
|
|
74135
74135
|
version,
|
|
@@ -172683,7 +172683,11 @@ async function installProjectDependencies({
|
|
|
172683
172683
|
// cli/build/build-ci.ts
|
|
172684
172684
|
var runCommand = (command, cwd) => {
|
|
172685
172685
|
console.log(kleur_default.cyan(`Running: ${command}`));
|
|
172686
|
-
execSync3(command, {
|
|
172686
|
+
execSync3(command, {
|
|
172687
|
+
stdio: "inherit",
|
|
172688
|
+
cwd,
|
|
172689
|
+
env: { ...process.env, TSCIRCUIT_INSIDE_BUILD_COMMAND: "1" }
|
|
172690
|
+
});
|
|
172687
172691
|
};
|
|
172688
172692
|
var applyCiBuildOptions = async ({
|
|
172689
172693
|
projectDir,
|
|
@@ -172693,18 +172697,21 @@ var applyCiBuildOptions = async ({
|
|
|
172693
172697
|
return { resolvedOptions: options, handled: false };
|
|
172694
172698
|
}
|
|
172695
172699
|
const projectConfig2 = loadProjectConfig(projectDir);
|
|
172700
|
+
const insideBuildCommand = process.env.TSCIRCUIT_INSIDE_BUILD_COMMAND === "1";
|
|
172696
172701
|
await installProjectDependencies({
|
|
172697
172702
|
cwd: projectDir,
|
|
172698
172703
|
skipTscircuitPackage: projectConfig2?.alwaysUseLatestTscircuitOnCloud
|
|
172699
172704
|
});
|
|
172700
172705
|
const prebuildCommand = projectConfig2?.prebuildCommand?.trim();
|
|
172701
172706
|
const buildCommand = projectConfig2?.buildCommand?.trim();
|
|
172702
|
-
if (
|
|
172703
|
-
|
|
172704
|
-
|
|
172705
|
-
|
|
172706
|
-
|
|
172707
|
-
|
|
172707
|
+
if (!insideBuildCommand) {
|
|
172708
|
+
if (prebuildCommand) {
|
|
172709
|
+
runCommand(prebuildCommand, projectDir);
|
|
172710
|
+
}
|
|
172711
|
+
if (buildCommand) {
|
|
172712
|
+
runCommand(buildCommand, projectDir);
|
|
172713
|
+
return { resolvedOptions: options, handled: true };
|
|
172714
|
+
}
|
|
172708
172715
|
}
|
|
172709
172716
|
return {
|
|
172710
172717
|
resolvedOptions: {
|