Skip to content

Commit a0638f8

Browse files
committed
feat: log process working directory as cwd if undefined
1 parent b813577 commit a0638f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/lib/execute-process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export function executeProcess(cfg: ProcessConfig): Promise<ProcessResult> {
153153
const logCommand = [command, ...(args || [])].join(' ');
154154
ui().logger.log(
155155
gray(
156-
`Executing command:\n${logCommand}\nIn working directory:\n${cfg.cwd}`,
156+
`Executing command:\n${logCommand}\nIn working directory:\n${cfg.cwd ?? process.cwd()}`,
157157
),
158158
);
159159

0 commit comments

Comments
 (0)