Skip to content

Commit

Permalink
jspm init work
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Nov 8, 2015
1 parent 68c2250 commit ff0bd6d
Show file tree
Hide file tree
Showing 9 changed files with 635 additions and 72 deletions.
2 changes: 2 additions & 0 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ require('rsvp').on('error', function(reason) {

var API = module.exports = new EventEmitter();

API.version = config.version;

API.setPackagePath = function(packagePath) {
if (config.loaded && process.env.jspmConfigPath !== path.resolve(packagePath, 'package.json'))
throw new Error('Configuration has already been loaded. Call setPackagePath before using other APIs.');
Expand Down
5 changes: 4 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,10 @@ process.on('uncaughtException', function(err) {
options = readOptions(args, ['yes', 'prompts']);
if (options.yes)
ui.useDefaults();
core.init(options.args[1], options.prompts);
core.init(options.args[1], options.prompts)
.catch(function(e) {
console.log(e);
});
break;

case 'dl-loader':
Expand Down
Loading

0 comments on commit ff0bd6d

Please sign in to comment.