forked from mirrors/nixpkgs
buildNodePackage: Handle bundledDependencies by nuking them
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
da4be371e9
commit
021c40c72d
|
@ -38,6 +38,7 @@ stdenv.mkDerivation ({
|
|||
mkdir -p $out/node_modules
|
||||
mv node_modules/${requireName} $out/node_modules
|
||||
mv node_modules/.bin $out/node_modules 2>/dev/null || true
|
||||
rm -fR $out/node_modules/${requireName}/node_modules
|
||||
mv node_modules $out/node_modules/${requireName}
|
||||
if [ -d "$out/node_modules/.bin" ]; then
|
||||
ln -sv node_modules/.bin $out/bin
|
||||
|
|
Loading…
Reference in a new issue