Skip to content

Commit

Permalink
Ensure node modules are stored in a node_modules directory. Fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed Jan 31, 2024
1 parent c08830c commit 0366b73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ in
${if !copyNodeModules
then "ln -s"
else "cp -r"
} ${passthru.nodeModules}/. node_modules
} ${passthru.nodeModules}/node_modules node_modules
''
}
Expand Down Expand Up @@ -152,7 +152,8 @@ in
'';

installPhase = ''
cp -r node_modules/. $out
mkdir -p $out
cp -r node_modules/. $out/node_modules
'';
};
};
Expand Down

0 comments on commit 0366b73

Please sign in to comment.