create-akan-workspace 3.1.0-rc.4 → 3.1.0-rc.6
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/index.js +6 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2086,9 +2086,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2086
2086
|
exports.useColor = useColor;
|
|
2087
2087
|
});
|
|
2088
2088
|
|
|
2089
|
-
// pkgs/create-akan-workspace/run.ts
|
|
2090
|
-
import { spawn } from "child_process";
|
|
2091
|
-
|
|
2092
2089
|
// node_modules/.bun/commander@14.0.3/node_modules/commander/index.js
|
|
2093
2090
|
var exports_commander = {};
|
|
2094
2091
|
__exportCjs(exports_commander, {
|
|
@@ -2116,6 +2113,11 @@ __exportCjs(exports_commander, {
|
|
|
2116
2113
|
InvalidArgumentError: (value) => $InvalidArgumentError = value,
|
|
2117
2114
|
InvalidOptionArgumentError: (value) => $InvalidOptionArgumentError = value
|
|
2118
2115
|
});
|
|
2116
|
+
|
|
2117
|
+
// pkgs/create-akan-workspace/run.ts
|
|
2118
|
+
import { spawn } from "child_process";
|
|
2119
|
+
|
|
2120
|
+
// node_modules/.bun/commander@14.0.3/node_modules/commander/index.js
|
|
2119
2121
|
var { Argument } = require_argument();
|
|
2120
2122
|
var { Command } = require_command();
|
|
2121
2123
|
var { CommanderError, InvalidArgumentError } = require_error();
|
|
@@ -2153,7 +2155,7 @@ var spawnProcess = (spawnCommand, command, args, options = {}) => {
|
|
|
2153
2155
|
const proc = spawnCommand(command, args, { cwd: process.cwd(), stdio: "inherit", ...options });
|
|
2154
2156
|
return new Promise((resolve, reject) => {
|
|
2155
2157
|
proc.on("exit", (code, signal) => {
|
|
2156
|
-
if (
|
|
2158
|
+
if (code || signal)
|
|
2157
2159
|
reject({ code, signal });
|
|
2158
2160
|
else
|
|
2159
2161
|
resolve({ code, signal });
|