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

Commit

Permalink
fix(publisher): don't throw error when 'dist/sub' don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Dec 29, 2013
1 parent 332ebff commit bd31923
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ var fs = require('fs');

module.exports = function() {

var modulesName = fs.readdirSync(__dirname + '/dist/sub');
var modulesName = [];
if (fs.existsSync(__dirname + '/dist/sub')){
modulesName = fs.readdirSync(__dirname + '/dist/sub');
}

function makingComponentData(memo, name){
memo[name] = {
Expand Down

0 comments on commit bd31923

Please sign in to comment.