Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
Remove COMPONENT_PATH from output description.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-baleine committed Nov 14, 2012
1 parent 6c413d8 commit 7b6d22f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions bin/component-build
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ program.on('--help', function(){
console.log(' # build standalone as window.$'); console.log(' # build standalone as window.$');
console.log(' $ component build --standalone $'); console.log(' $ component build --standalone $');
console.log(); console.log();
console.log(' # add lookup paths');
console.log(' $ COMPONENT_PATH=lib');
console.log(' $ component build');
console.log();
}); });


// parse argv // parse argv
Expand Down
2 changes: 1 addition & 1 deletion lib/component.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports.lookup = function(pkg, paths){
exports.dependenciesOf = function(pkg, paths, parent){ exports.dependenciesOf = function(pkg, paths, parent){
paths = paths || []; paths = paths || [];
var path = exports.lookup(pkg, paths); var path = exports.lookup(pkg, paths);
if (!path && parent) throw new Error('failed to lookup "' + parent + '"\'s dep "' + pkg + '" within COMPONENT_PATH'); if (!path && parent) throw new Error('failed to lookup "' + parent + '"\'s dep "' + pkg + '"');
if (!path) throw new Error('failed to lookup "' + pkg + '"'); if (!path) throw new Error('failed to lookup "' + pkg + '"');
var conf = require(resolve(path, 'component.json')); var conf = require(resolve(path, 'component.json'));
var deps = [conf.dependencies || {}]; var deps = [conf.dependencies || {}];
Expand Down

0 comments on commit 7b6d22f

Please sign in to comment.