Permalink
Browse files

bundle url dependencies

  • Loading branch information...
1 parent 01bd302 commit a055c3c1f3c5caf16ee773c9f58b66fd6abf8736 @isaacs isaacs committed Mar 21, 2011
Showing with 6 additions and 3 deletions.
  1. +1 −1 lib/build.js
  2. +5 −2 lib/install.js
View
@@ -52,7 +52,7 @@ function linkStuff (pkg, folder, global, cb) {
, gnm = global && path.resolve(npm.config.get("prefix"), "node_modules")
, top = gnm === parent
- log.warn([global, gnm, top, parent], "linkStuff")
+ log.verbose([global, gnm, top, parent], "linkStuff")
log(pkg._id, "linkStuff")
asyncMap([linkBins, linkMans, rebuildBundles], function (fn, cb) {
log(pkg._id, fn.name)
View
@@ -142,9 +142,7 @@ function install (args, cb) {
previously[data.name] = data.version
installMany(deps.map(function (dep) {
var target = data.dependencies[dep]
- log.warn(target)
if (!url.parse(target).protocol) {
- log.warn(target, "not url")
target = dep + "@" + target
}
return target
@@ -325,6 +323,11 @@ function write (target, targetFolder, previously, cb_) {
// something in the "previously" list.
return !semver.satisfies(previously[d], target.dependencies[d])
}).map(function (d) {
+ var t = target.dependencies[d]
+ if (!url.parse(t).protocol) {
+ t = d + "@" + t
+ }
+ return t
return d + "@" + target.dependencies[d]
}), targetFolder, newPrev, false, function (er) {
log.verbose(targetFolder, "about to build")

0 comments on commit a055c3c

Please sign in to comment.