Skip to content

Commit

Permalink
nodejs builder: provide binaries from deep deps
Browse files Browse the repository at this point in the history
npm does this too
  • Loading branch information
wmertens committed Aug 12, 2022
1 parent 2afcbec commit b8d816a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/subsystems/nodejs/builders/granular/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit b8d816a

Please sign in to comment.