Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrazier committed Apr 28, 2017
1 parent c33eff5 commit a285e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "package-bundle",
"version": "0.0.4",
"version": "0.0.5",
"description": "Download npm packages and dependencies as tgz's to then import into package manager or project",
"main": "lib/index.js",
"preferGlobal": true,
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ Promise.mapSeries(packages, (pkg) => init(pkg))
.then(() => args.archive && cleanUp())
.catch(err => console.log(err.stack));

function init(pgk) {
function init(pkg) {
let strippedAt = false;
let range;
if (pgk.startsWith('@')) {
if (pkg.startsWith('@')) {
pkg = pkg.substring(1);
strippedAt = true;
}
Expand Down

0 comments on commit a285e9d

Please sign in to comment.