From 8aff1e761421995ec9d86662404ac753e3944d35 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Wed, 26 Nov 2025 00:50:51 -0500 Subject: [PATCH] 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. --- packages/server/src/utils/process/execAsync.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/server/src/utils/process/execAsync.ts b/packages/server/src/utils/process/execAsync.ts index c3421446d..cd0249000 100644 --- a/packages/server/src/utils/process/execAsync.ts +++ b/packages/server/src/utils/process/execAsync.ts @@ -1,5 +1,4 @@ import { exec, execFile } from "node:child_process"; -import type { ObjectEncodingOptions } from "node:fs"; import util from "node:util"; import { findServerById } from "@dokploy/server/services/server"; import { Client } from "ssh2"; @@ -12,7 +11,7 @@ const execAsyncBase = util.promisify(exec); export const execAsync = async ( command: string, - options?: ObjectEncodingOptions & ExecOptions, + options?: { cwd?: string; env?: NodeJS.ProcessEnv; shell?: string }, ): Promise<{ stdout: string; stderr: string }> => { try { const result = await execAsyncBase(command, options);