Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async directory => {
const hasGatsby = await findUp.exists(
path.join(directory, 'node_modules', 'gatsby')
)
return hasGatsby ? directory : ''
},
{ type: 'directory' }