Skip to content

Commit

Permalink
0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Feb 1, 2015
1 parent a933614 commit 7550f89
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ process.on('uncaughtException', function(err) {
var arg = args[i];
name = arg.split('=')[0];
target = arg.split('=')[1];

// if it is a full name then it is the target
// the name is taken to be the shortname from the target
if (name.indexOf(':') != -1) {
target = name + (target ? '@' + target : '');
name = target.split(':')[1].split('/').pop();
}
else if (name.indexOf('@') > 0) {
target = name.split('@')[1];
name = name.split('@')[0];
}

depMap[name] = target || '';
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jspm",
"description": "Registry and format agnostic JavaScript package manager",
"version": "0.11.1",
"version": "0.11.2",
"main": "./api.js",
"author": "",
"dependencies": {
Expand Down

0 comments on commit 7550f89

Please sign in to comment.