Skip to content

Commit

Permalink
Relativize symlink to npmScriptFile
Browse files Browse the repository at this point in the history
This way the downloaded node install can also be used where the
filesystem mapping is different, eg. in a docker container.
  • Loading branch information
Finn Petersen committed Feb 1, 2019
1 parent ae1c640 commit 5a392ad
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ class SetupTask
Path npm = Paths.get( variant.nodeBinDir.path, 'npm' )
if ( Files.deleteIfExists( npm ) )
{
Files.createSymbolicLink( npm, Paths.get( variant.npmScriptFile ) )
Files.createSymbolicLink(
npm,
variant.nodeBinDir.toPath().relativize(Paths.get(variant.npmScriptFile)))
}
}
}
Expand Down

0 comments on commit 5a392ad

Please sign in to comment.