Skip to content

Commit

Permalink
Use fs.link on Windows
Browse files Browse the repository at this point in the history
Fixes #41.
  • Loading branch information
kevva committed Sep 7, 2016
1 parent 7b32db0 commit c110d5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const extractFile = (input, output, opts) => runPlugins(input, opts).then(files
return fsP.link(x.linkname, dest);
}

if (x.type === 'symlink' && process.platform === 'win32') {
return fsP.link(x.linkname, dest);
}

if (x.type === 'symlink') {
return fsP.symlink(x.linkname, dest);
}
Expand Down

0 comments on commit c110d5f

Please sign in to comment.