Skip to content

Commit

Permalink
fix(install): update the switch in saver
Browse files Browse the repository at this point in the history
  • Loading branch information
watilde committed Sep 10, 2017
1 parent ff05b3f commit efd88b9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/install/saver.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@ module.exports = (pkgs, save) => {
const dep = global.dependenciesTree[pkg]
if (!value) {
switch (dep.type) {
case 'dat':
case 'git':
case 'remote':
case 'local':
value = dep.url
break
case 'registry':
value = npmrc['save-prefix'] + dep.version
break
default:
value = dep.url
break
}
}
saveDeps[key] = value
Expand Down

0 comments on commit efd88b9

Please sign in to comment.