Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const publishablePackages = await asyncFilter(packages, async pkg => {
try {
await canNpmPublish(pkg.location);
return true;
} catch (error) {
return false;
}
});