Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit 0e49349

Browse files
committed
fix(ci): unlink existing symlink before installing monorepo binary
1 parent 0510c44 commit 0e49349

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

npm/install.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const linkBinaryIntoBin = () => {
1515
const existingPath = path.resolve(downloadDir, binaryName)
1616
const desiredPath = path.resolve(nodeModulesBinDir, binaryName)
1717

18+
// Remove the symlinked, dummy, script, before symlinking the compiled binary in place
19+
fs.unlinkSync(desiredPath)
1820
fs.symlinkSync(existingPath, desiredPath)
1921

2022
// By default, the downloaded file preserves the mtime of the binary created by GitHub

0 commit comments

Comments
 (0)