Skip to content

Commit

Permalink
feat(rewrite): include .tar.gz files
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Oct 26, 2015
1 parent 4aeea13 commit cf14888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function updateShrinkwrap(config) {
}

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

0 comments on commit cf14888

Please sign in to comment.