diff options
author | isaacs <i@izs.me> | 2012-02-24 18:52:17 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-02-24 18:52:17 -0800 |
commit | ca0986fbd1a8ade47f3160853a257b6ae83a2151 (patch) | |
tree | 7a86f9b6ff5b046d800fab15d51d220b2b3b476e /deps/npm/lib/link.js | |
parent | e004721b482198fb9558f920f8101b27fb0bcb7c (diff) | |
download | node-new-ca0986fbd1a8ade47f3160853a257b6ae83a2151.tar.gz |
Update npm to 1.1.2
Diffstat (limited to 'deps/npm/lib/link.js')
-rw-r--r-- | deps/npm/lib/link.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/npm/lib/link.js b/deps/npm/lib/link.js index fea6606666..3049884cab 100644 --- a/deps/npm/lib/link.js +++ b/deps/npm/lib/link.js @@ -141,6 +141,7 @@ function resultPrinter (pkg, src, dest, rp, cb) { var where = relativize(dest, path.resolve(process.cwd(),"x")) rp = (rp || "").trim() src = (src || "").trim() + // XXX If --json is set, then look up the data from the package.json if (npm.config.get("parseable")) { return parseableOutput(dest, rp || src, cb) } @@ -150,6 +151,9 @@ function resultPrinter (pkg, src, dest, rp, cb) { } function parseableOutput (dest, rp, cb) { + // XXX this should match ls --parseable and install --parseable + // look up the data from package.json, format it the same way. + // // link is always effectively "long", since it doesn't help much to // *just* print the target folder. // However, we don't actually ever read the version number, so |