Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default async config => {
const { params, plugins } = await buildParams(config);
// Connect to the stdout and process each line of the output using `stdOut` function
const unhook = hookStd({ silent: false }, stdOut);
try {
await compose([verifyEnvironment(), ...plugins])(params);
unhook();
return params;
} catch (err) {
unhook();
throw err;
}
};