Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getTarballFiles(source, options) {
return fix
.bootstrap(source)
.then(cwd =>
execa('npm', ['pack'], {cwd}).then(cp => path.join(cwd, cp.stdout))
)
.then(tarball => getArchiveFiles(tarball, options));
}