@staff0rd/assist 0.761.0 → 0.761.1

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/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.761.0",
9
+ version: "0.761.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -39898,11 +39898,19 @@ function resolveRunCwd(config, baseDir = runConfigBaseDir()) {
39898
39898
 
39899
39899
  // src/commands/run/runPreCommands.ts
39900
39900
  import { execSync as execSync66 } from "child_process";
39901
- function runPreCommands(pre, cwd) {
39901
+ function writeCapturedOutput(error) {
39902
+ for (const stream of ["stdout", "stderr"]) {
39903
+ const output = error[stream];
39904
+ if (output) process.stdout.write(output);
39905
+ }
39906
+ }
39907
+ function runPreCommands(pre, cwd, quiet) {
39902
39908
  for (const cmd of pre) {
39903
39909
  try {
39904
- execSync66(cmd, { stdio: "inherit", cwd });
39910
+ execSync66(cmd, { stdio: quiet ? "pipe" : "inherit", cwd });
39905
39911
  } catch (error) {
39912
+ if (quiet && error && typeof error === "object")
39913
+ writeCapturedOutput(error);
39906
39914
  const code = error && typeof error === "object" && "status" in error ? error.status : 1;
39907
39915
  process.exit(code);
39908
39916
  }
@@ -39928,14 +39936,14 @@ async function runWatchBuild(entry) {
39928
39936
  if (!(error instanceof MissingRunCwdError)) throw error;
39929
39937
  return { kind: "failed", exitCode: 1, output: error.message };
39930
39938
  }
39931
- if (config.pre) runPreCommands(config.pre, cwd);
39939
+ if (config.pre) runPreCommands(config.pre, cwd, true);
39932
39940
  return toBuildOutcome(
39933
39941
  await runCommandToCompletion(
39934
39942
  config.command,
39935
39943
  [...config.args ?? [], ...resolveParams(config.params, [])],
39936
39944
  config.env,
39937
39945
  cwd,
39938
- config.quiet
39946
+ true
39939
39947
  )
39940
39948
  );
39941
39949
  }
@@ -39955,7 +39963,13 @@ async function reportBuildOrExit(entry) {
39955
39963
  // src/commands/watch/runPostBuildSync.ts
39956
39964
  async function runPostBuildSync() {
39957
39965
  return toBuildOutcome(
39958
- await runCommandToCompletion("assist", ["sync", "--yes"])
39966
+ await runCommandToCompletion(
39967
+ "assist",
39968
+ ["sync", "--yes"],
39969
+ void 0,
39970
+ void 0,
39971
+ true
39972
+ )
39959
39973
  );
39960
39974
  }
39961
39975
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.761.0",
3
+ "version": "0.761.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {