diff options
author | isaacs <i@izs.me> | 2012-06-12 07:54:39 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-12 07:54:39 +0400 |
commit | 0892bab0080217b374ba58f8fa68f412b383d3e6 (patch) | |
tree | 73c78fdc1f8a651978cf689531c994ce65e38cdb /lib/link.js | |
parent | aaf7e0565ffded02bdd3f3c75a471989a3e3a26b (diff) |
Replace relativize with path.relative
Diffstat (limited to 'lib/link.js')
-rw-r--r-- | lib/link.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/link.js b/lib/link.js index df153cb02..bfb726833 100644 --- a/lib/link.js +++ b/lib/link.js @@ -8,7 +8,6 @@ var npm = require("./npm.js") , asyncMap = require("slide").asyncMap , chain = require("slide").chain , path = require("path") - , relativize = require("./utils/relativize.js") , rm = require("rimraf") , output = require("./utils/output.js") , build = require("./build.js") @@ -146,7 +145,7 @@ function linkPkg (folder, cb_) { function resultPrinter (pkg, src, dest, rp, cb) { if (typeof cb !== "function") cb = rp, rp = null - var where = relativize(dest, path.resolve(process.cwd(),"x")) + var where = path.relative(process.cwd(), dest) rp = (rp || "").trim() src = (src || "").trim() // XXX If --json is set, then look up the data from the package.json |