mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
chore: don't crash if some artifacts are not found
This commit is contained in:
@@ -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