Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (packageConfModified) {
log(
'info',
'🚧 - The project package.json changed, you may want' +
' to `npm install` again to install new dependencies.'
);
}
if (assetsModified) {
log(
'info',
'🚧 - Some assets were added to the project, you may want to stage them.'
);
}
exit(0);
} catch (err) {
const castedErr = YError.cast(err);
log(
'error',
'💀 - Could not run metapak script correctly:',
castedErr.code,
castedErr.params
);
log('info', '💊 - Debug by running again with "DEBUG=metapak" env.');
log('stack', castedErr.stack);
exit(1);
}
};
}