yarnInstallHook: fix temporary directory location

Currently the directory is being created in $src/yarnInstallHook.XXXXXX
Giving the directory a readable name is not particularly useful
This commit is contained in:
lelgenio 2024-09-17 16:01:33 -03:00
parent 3a33f50843
commit c499cb1399

View File

@ -17,7 +17,7 @@ yarnInstallHook() {
--offline
)
local -r tmpDir="$(mktemp -d yarnInstallHook.XXXXXX)"
local -r tmpDir="$(mktemp -d)"
# yarn pack does not work at all with bundleDependencies.
# Since we are imediately unpacking, we can just remove them from package.json