Skip to content

Commit

Permalink
fix(rewrite): handle urls in resolved properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Nov 4, 2015
1 parent 8b16ac6 commit ef02a10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,7 @@ function updateShrinkwrap(config) {

function rewritePath(key, object) {
if (object.resolved.search(/\.tgz|\.tar\.gz/) !== -1) {
object.resolved = './node_shrinkwrap' + object.resolved.slice(
object.resolved.lastIndexOf('/'),
object.resolved.length
);
object.resolved = './node_shrinkwrap/' + key + '-' + object.version + '.tgz';
}
}
}
Expand Down

0 comments on commit ef02a10

Please sign in to comment.