Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 63b79cc

Browse files
laisoothiym23
authored andcommitted
git: cacheable deps can be 'git' *or* 'hosted'
1 parent 1ff636e commit 63b79cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/install.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ function targetResolver (where, context, deps, devDeps) {
892892
return cb(null, [])
893893
}
894894

895-
var isGit = npa(what).type === "git"
895+
var isGit = (npa(what).type === "git" || npa(what).type === "hosted")
896896

897897
if (!er &&
898898
data &&
@@ -918,7 +918,7 @@ function installOne (target, where, context, cb) {
918918
// the --link flag makes this a "link" command if it's at the
919919
// the top level.
920920
var isGit = false
921-
if (target && target._from) isGit = npa(target._from).type === 'git'
921+
if (target && target._from) isGit = (npa(target._from).type === 'git' || npa(target._from).type === 'hosted')
922922

923923
if (where === npm.prefix && npm.config.get("link")
924924
&& !npm.config.get("global") && !isGit) {

0 commit comments

Comments
 (0)