@devkong/cli 0.0.4 → 0.0.5
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
CHANGED
|
@@ -66759,13 +66759,13 @@ function generateShortId() {
|
|
|
66759
66759
|
uuidHash.push(uuidToJavaHashCode(guid()) & 2147483647);
|
|
66760
66760
|
return sqids.encode(uuidHash);
|
|
66761
66761
|
}
|
|
66762
|
-
async function spawnCommand(commandText, logger = null) {
|
|
66762
|
+
async function spawnCommand(commandText, logger = null, shell = false) {
|
|
66763
66763
|
return new Promise((resolve2, reject) => {
|
|
66764
66764
|
const commandWithArgs = commandText.split(" ").filter((s) => s);
|
|
66765
66765
|
logger.debug(commandText);
|
|
66766
66766
|
const command = commandWithArgs.shift();
|
|
66767
66767
|
const commandArgs = commandWithArgs;
|
|
66768
|
-
const child = (0, import_child_process.spawn)(command, commandArgs, { shell
|
|
66768
|
+
const child = (0, import_child_process.spawn)(command, commandArgs, { shell, stdio: ["pipe", "pipe", "pipe"] });
|
|
66769
66769
|
let stdout = "";
|
|
66770
66770
|
let stderr = "";
|
|
66771
66771
|
child.stdout.on("data", (data) => {
|
|
@@ -69410,7 +69410,8 @@ var InstallCommand = class {
|
|
|
69410
69410
|
task.output = `${scriptPath} ${workspaceDirectory}`;
|
|
69411
69411
|
await spawnCommand(
|
|
69412
69412
|
`${scriptPath} ${workspaceDirectory}`,
|
|
69413
|
-
new ListrTaskLogger(task, this.verbose ? 3 /* DEBUG */ : 0 /* INFO */)
|
|
69413
|
+
new ListrTaskLogger(task, this.verbose ? 3 /* DEBUG */ : 0 /* INFO */),
|
|
69414
|
+
true
|
|
69414
69415
|
);
|
|
69415
69416
|
},
|
|
69416
69417
|
rendererOptions: {
|
package/package.json
CHANGED
|
@@ -8,5 +8,5 @@ export declare function env(key: string): string;
|
|
|
8
8
|
export declare function optionalEnv(key: string): string;
|
|
9
9
|
export declare function resolveProjectPath(fileName: string): string;
|
|
10
10
|
export declare function generateShortId(): string;
|
|
11
|
-
export declare function spawnCommand(commandText: string, logger?: ILogger): Promise<string>;
|
|
11
|
+
export declare function spawnCommand(commandText: string, logger?: ILogger, shell?: boolean): Promise<string>;
|
|
12
12
|
export declare function printError(message: string, error: unknown): void;
|