From d87a4b71850a16f36f7f29bfe3741b432871ab2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sat, 10 Aug 2024 21:14:02 +0200 Subject: [PATCH] npmHooks.npmInstallHook: resolve symlinks when copying node_modules --- .../node/build-npm-package/hooks/npm-install-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh b/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh index 750ed421789fd..b584e9d4c7e2b 100644 --- a/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh +++ b/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh @@ -58,7 +58,7 @@ npmInstallHook() { find node_modules -maxdepth 1 -type d -empty -delete - cp -r node_modules "$nodeModulesPath" + cp -rL node_modules "$nodeModulesPath" fi runHook postInstall