Skip to content

Commit

Permalink
Merge pull request #365 from opentable/publish-bugfix
Browse files Browse the repository at this point in the history
Publish bugfix
  • Loading branch information
matteofigus authored Jan 23, 2017
2 parents 7f1f703 + 8496d1e commit d9458ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cli/facade/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ module.exports = function(dependencies){

var packageAndCompress = function(cb){
log.warn(format(strings.messages.cli.PACKAGING, packageDir));

local.package(componentPath, function(err, component){
local.package(path.resolve(componentPath), function(err, component){
if(err){ return cb(err); }

log.warn(format(strings.messages.cli.COMPRESSING, compressedPackagePath));
Expand Down
4 changes: 2 additions & 2 deletions test/unit/cli-facade-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ describe('cli : facade : publish', function(){
var execute = function(cb, creds){
creds = creds || {};
logSpy.log = sinon.stub();
publishFacade({
componentPath: path.resolve('test/fixtures/components/hello-world/'),
publishFacade({
componentPath: 'test/fixtures/components/hello-world/',
username: creds.username,
password: creds.password
}, function(){
Expand Down

0 comments on commit d9458ef

Please sign in to comment.