🔧 Global formatting and update formatting
This commit is contained in:
6
bin/utils/shell.ts
vendored
6
bin/utils/shell.ts
vendored
@@ -5,10 +5,12 @@ export async function shellExec(command: string) {
|
||||
try {
|
||||
const { exitCode } = await execa(command, {
|
||||
cwd: npmDirectory,
|
||||
stdio: 'inherit'
|
||||
stdio: 'inherit',
|
||||
});
|
||||
return exitCode;
|
||||
} catch (error) {
|
||||
throw new Error(`Error occurred while executing command "${command}". Exit code: ${error.exitCode}`);
|
||||
throw new Error(
|
||||
`Error occurred while executing command "${command}". Exit code: ${error.exitCode}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user