Skip to content

Commit

Permalink
remove legacy global reversion
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 29, 2014
1 parent 515bc35 commit b4a1f5f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions jspm.js
Expand Up @@ -30,18 +30,8 @@ jspmCLI.launch({}, function(env) {
process.env.jspmConfigPath = env.configPath || '';
process.env.localJspm = !!env.modulePath;
if (env.modulePath) {
try {
require(path.resolve(env.modulePath, '../cli'));
}
catch(e) {
process.env.localJspm = false;
// if an older version of jspm, revert to the global install
// this can be removed in time
if (e.code === 'MODULE_NOT_FOUND')
require('./cli');
else
throw e;
}
require(path.resolve(env.modulePath, '../cli'));
process.env.localJspm = false;
}
else {
require('./cli');
Expand Down

0 comments on commit b4a1f5f

Please sign in to comment.