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

Commit

Permalink
Browse files Browse the repository at this point in the history
Push the new npm-package-arg logic further into the caching logic.
Doesn't quite handle GitHub URLs correctly yet. That will require
depending on hosted-git-info directly.
  • Loading branch information
othiym23 committed Mar 20, 2015
1 parent 3ed41bf commit 63313eb
Show file tree
Hide file tree
Showing 16 changed files with 332 additions and 868 deletions.
8 changes: 6 additions & 2 deletions lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,12 @@ function add (args, where, cb) {
case "git":
addRemoteGit(p.spec, false, cb)
break
case "github":
maybeGithub(p.spec, cb)
case "hosted":
if (p.hosted.type === "github") {
maybeGithub(p.rawSpec, cb)
} else {
addRemoteGit(p.spec, false, cb)
}
break
default:
if (p.name) return addNamed(p.name, p.spec, null, cb)
Expand Down
15 changes: 13 additions & 2 deletions node_modules/realize-package-specifier/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 63313eb

Please sign in to comment.