Archived
1
0

Fix symlink_asar failing if link is broken

This can happen if you `yarn release` without keeping node modules.
This commit is contained in:
Asher 2021-01-05 15:28:42 -06:00
parent aa05993cf0
commit 05530db20e
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -103,7 +103,7 @@ RELEASE_PATH="${RELEASE_PATH-release}"
# Code itself but also extensions will look specifically in this directory for
# files (like the ripgrep binary or the oniguruma wasm).
symlink_asar() {
if [ ! -e node_modules.asar ]; then
if [ ! -L node_modules.asar ]; then
if [ "${WINDIR-}" ]; then
# mklink takes the link name first.
mklink /J node_modules.asar node_modules