var symlink = require('./force_symlink')
var dirname = require('path').dirname
var relative = require('path').relative

/*
 * Relative symlink
 */

module.exports = function relSymlink (src, dest) {
  var rel = relative(dirname(dest), src)
  return symlink(rel, dest)
}

var symlink = require('./force_symlink')
var dirname = require('path').dirname
var relative = require('path').relative

/*
 * Relative symlink
 */

module.exports = function relSymlink (src, dest) {
  // Turn it into a relative path when not in win32.
  var rel = process.platform === 'win32'
    ? relative(dirname(dest), src)
    : src

  return symlink(rel, dest, 'junction')
}

Support windows junctions