diff --git a/src/subsystems/nodejs/builders/granular/default.nix b/src/subsystems/nodejs/builders/granular/default.nix index 84f4a0b407..344b400c91 100644 --- a/src/subsystems/nodejs/builders/granular/default.nix +++ b/src/subsystems/nodejs/builders/granular/default.nix @@ -541,6 +541,9 @@ ln -s ${prodModules} $sourceRoot/node_modules if [ -d ${prodModules}/.bin ]; then export PATH="$PATH:$sourceRoot/node_modules/.bin" + # pass down transitive binaries, like npm does + # all links are absolute so we can just copy + cp -af --no-preserve=mode ${prodModules}/.bin/. $out/bin/. fi '' else ""