@storm-software/bun-tools 0.0.66 → 0.0.67

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.
Files changed (3) hide show
  1. package/bin/bun.cjs +20 -1
  2. package/bin/bun.js +20 -1
  3. package/package.json +6 -6
package/bin/bun.cjs CHANGED
@@ -1396,7 +1396,7 @@ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.s
1396
1396
  var import_node_child_process = require("child_process");
1397
1397
  var LARGE_BUFFER = 1024 * 1e6;
1398
1398
  var runAsync = (config, command, cwd = config.workspaceRoot ?? process.cwd(), env = process.env) => {
1399
- return (0, import_node_child_process.exec)(command, {
1399
+ const child = (0, import_node_child_process.exec)(command, {
1400
1400
  cwd,
1401
1401
  env: {
1402
1402
  ...process.env,
@@ -1409,6 +1409,25 @@ var runAsync = (config, command, cwd = config.workspaceRoot ?? process.cwd(), en
1409
1409
  killSignal: "SIGTERM",
1410
1410
  encoding: "utf8"
1411
1411
  });
1412
+ child.stdout?.pipe(process.stdout);
1413
+ child.stderr?.pipe(process.stderr);
1414
+ const done = new Promise((resolve, reject) => {
1415
+ child.once("error", reject);
1416
+ child.once("close", (code) => {
1417
+ if (code === 0) {
1418
+ resolve();
1419
+ return;
1420
+ }
1421
+ reject(
1422
+ new Error(`Command failed with exit code ${code ?? "null"}: ${command}`)
1423
+ );
1424
+ });
1425
+ });
1426
+ return Object.assign(child, {
1427
+ then: done.then.bind(done),
1428
+ catch: done.catch.bind(done),
1429
+ finally: done.finally.bind(done)
1430
+ });
1412
1431
  };
1413
1432
 
1414
1433
  // ../config-tools/src/config-file/get-config-file.ts
package/bin/bun.js CHANGED
@@ -1374,7 +1374,7 @@ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.s
1374
1374
  import { exec, execSync } from "node:child_process";
1375
1375
  var LARGE_BUFFER = 1024 * 1e6;
1376
1376
  var runAsync = (config, command, cwd = config.workspaceRoot ?? process.cwd(), env = process.env) => {
1377
- return exec(command, {
1377
+ const child = exec(command, {
1378
1378
  cwd,
1379
1379
  env: {
1380
1380
  ...process.env,
@@ -1387,6 +1387,25 @@ var runAsync = (config, command, cwd = config.workspaceRoot ?? process.cwd(), en
1387
1387
  killSignal: "SIGTERM",
1388
1388
  encoding: "utf8"
1389
1389
  });
1390
+ child.stdout?.pipe(process.stdout);
1391
+ child.stderr?.pipe(process.stderr);
1392
+ const done = new Promise((resolve, reject) => {
1393
+ child.once("error", reject);
1394
+ child.once("close", (code) => {
1395
+ if (code === 0) {
1396
+ resolve();
1397
+ return;
1398
+ }
1399
+ reject(
1400
+ new Error(`Command failed with exit code ${code ?? "null"}: ${command}`)
1401
+ );
1402
+ });
1403
+ });
1404
+ return Object.assign(child, {
1405
+ then: done.then.bind(done),
1406
+ catch: done.catch.bind(done),
1407
+ finally: done.finally.bind(done)
1408
+ });
1390
1409
  };
1391
1410
 
1392
1411
  // ../config-tools/src/config-file/get-config-file.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/bun-tools",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "private": false,
5
5
  "description": "A set of [Bun](https://bun.sh/) plugins and utilities for managing workspace packages/dependencies.",
6
6
  "repository": {
@@ -73,10 +73,10 @@
73
73
  "storm-bun-esm": "./bin/bun.js"
74
74
  },
75
75
  "dependencies": {
76
- "@storm-software/config": "1.138.89",
77
- "@storm-software/config-tools": "1.190.153",
78
- "@storm-software/npm-tools": "0.6.273",
79
- "@storm-software/package-constants": "0.1.165",
76
+ "@storm-software/config": "1.138.90",
77
+ "@storm-software/config-tools": "1.190.154",
78
+ "@storm-software/npm-tools": "0.6.274",
79
+ "@storm-software/package-constants": "0.1.166",
80
80
  "chalk": "^4.1.2",
81
81
  "commander": "^12.1.0",
82
82
  "defu": "^6.1.7",
@@ -89,5 +89,5 @@
89
89
  },
90
90
  "devDependencies": { "@types/node": "^25.9.9", "tsup": "8.4.0" },
91
91
  "publishConfig": { "access": "public" },
92
- "gitHead": "7a502e974b390096b201737b87f85e793499bad2"
92
+ "gitHead": "669ee54da1367f7049b6e5b5f6e27ab208940a47"
93
93
  }