Skip to content

Commit 5853884

Browse files
committed
🐛 format
1 parent 7b74b7f commit 5853884

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bin/builders/BaseBuilder.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ export default abstract class BaseBuilder {
7070
timeout,
7171
);
7272
} else {
73-
await shellExec(`cd "${npmDirectory}" && ${packageManager} install`, timeout);
73+
await shellExec(
74+
`cd "${npmDirectory}" && ${packageManager} install`,
75+
timeout,
76+
);
7477
}
7578
spinner.succeed(chalk.green('Package installed!'));
7679
if (!tauriTargetPathExists) {

bin/utils/shell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ export async function shellExec(command: string, timeout: number = 300000) {
1313
} catch (error: any) {
1414
const exitCode = error.exitCode ?? 'unknown';
1515
const errorMessage = error.message || 'Unknown error occurred';
16-
16+
1717
if (error.timedOut) {
1818
throw new Error(
1919
`Command timed out after ${timeout}ms: "${command}". Try increasing timeout or check network connectivity.`,
2020
);
2121
}
22-
22+
2323
throw new Error(
2424
`Error occurred while executing command "${command}". Exit code: ${exitCode}. Details: ${errorMessage}`,
2525
);

0 commit comments

Comments
 (0)