diff --git a/cli.js b/cli.js index c9efd84ba..5048d93f9 100755 --- a/cli.js +++ b/cli.js @@ -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 || ''; } diff --git a/package.json b/package.json index 6ac284801..545bdfc05 100644 --- a/package.json +++ b/package.json @@ -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": {