It turns out that not all packages downloaded from npm are actually gzipped (even though they are named *.tgz). Specifically, I have seen this with the @types scope introduced recently for use with typescript. In theses cases jspm install fails when trying to unzip:
It turns out that not all packages downloaded from npm are actually gzipped (even though they are named
*.tgz
). Specifically, I have seen this with the@types
scope introduced recently for use with typescript. In theses cases jspm install fails when trying to unzip:This pull request resolves this by checking whether the downloaded package is actually gzipped, and only extracts the tar contents if not.
This is basically the same PR as #147 but tweaked to work with 0.17