Skip to content

Commit

Permalink
warn when packages not within baseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 8, 2015
1 parent 71bb907 commit aeb7ec6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/config/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ PackageJSON.prototype.read = function(prompts, sync) {
self.buildConfig = extend({}, pjson.buildConfig || {});
self.overrides = extend({}, pjson.overrides || {});
}

// warn on invalid configs
if (path.relative(self.baseURL, self.packages)[0] == '.')
ui.log('warn', 'jspm_packages must be specified in the package.json within the baseURL for paths to resolve correctly.');
};

PackageJSON.prototype.write = function() {
Expand Down

0 comments on commit aeb7ec6

Please sign in to comment.