Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
await new Promise((resolve, reject) =>
globStream(
[
...patterns.map(forceForwardSlashes),
// Avoid reading asar files: electron patches in support for them, but
// if we see an invalid one then it throws a synchronous error that
// breaks glob. We don't care about asar's here, so just skip that:
'!**/*.asar/**',
],
{
matchBase: true,
cwd: base,
},
)
.on('data', (value: globStream.Entry) =>
todo.push(
createMetadataForFile(fixDriveLetterAndSlashes(value.path))
.then(parsed => parsed && onChild(parsed))
transform
})
this.push(snippet)
})
}
callback()
})
}
})
return inStream.pipe(upperStream)
}
const files = gs(sourceDir, { ignore })
return transformFiles(files)
}