chore: don't crash if some artifacts are not found
This commit is contained in:
1 file changed
+5
-1
@@ -26,5 +26,9 @@ const artifactsDir = path.join(repoRoot, 'pnpm/artifacts')
|
||||
})()
|
||||
|
||||
function copyArtifact (srcName: string, destName: string): void {
|
||||
fs.copyFileSync(path.join(artifactsDir, srcName), path.join(dest, destName))
|
||||
try {
|
||||
fs.copyFileSync(path.join(artifactsDir, srcName), path.join(dest, destName))
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user