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) => {
mkdirpSync(workspace);
copyfiles([
path.join(sourcePath, '.slicknode', '**', '*'),
path.join(sourcePath, '**', '*'),
path.join(sourcePath, '.*'),
workspace,
], {up: sourcePath.split('/').length}, resolve);
});
return new Promise((resolve, reject) => {
fancyLogs.info({
message: `copy ${files.join(',')}`,
suffix: `to ${relative(this.projectRoot, dest)}`,
})
copyfiles(files.concat(dest), {}, (error: Error) => {
if (error) {
reject(error)
} else {
resolve()
}
})
})
}