Skip to content

Commit 8aff1e7

Browse files
author
Mauricio Siu
committed
refactor: simplify execAsync options type for better clarity
- Updated the options parameter in execAsync to a more streamlined type, focusing on cwd, env, and shell properties for improved clarity and usability.
1 parent dbe1733 commit 8aff1e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/server/src/utils/process/execAsync.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { exec, execFile } from "node:child_process";
2-
import type { ObjectEncodingOptions } from "node:fs";
32
import util from "node:util";
43
import { findServerById } from "@dokploy/server/services/server";
54
import { Client } from "ssh2";
@@ -12,7 +11,7 @@ const execAsyncBase = util.promisify(exec);
1211

1312
export const execAsync = async (
1413
command: string,
15-
options?: ObjectEncodingOptions & ExecOptions,
14+
options?: { cwd?: string; env?: NodeJS.ProcessEnv; shell?: string },
1615
): Promise<{ stdout: string; stderr: string }> => {
1716
try {
1817
const result = await execAsyncBase(command, options);

0 commit comments

Comments
 (0)