Skip to content

Commit 4f5bfd1

Browse files
committed
Don't assume the existence of an addon dir in the documented addon
1 parent 7906347 commit 4f5bfd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ module.exports = {
219219
treeForAddon(tree) {
220220
let dummyAppFiles = new FindDummyAppFiles([ this.app.trees.app ]);
221221
let addonToDocument = this._documentingAddon();
222-
let addonFiles = new FindAddonFiles([path.join(addonToDocument.root, 'addon')]);
222+
let addonFiles = new FindAddonFiles([path.join(addonToDocument.root, 'addon')].filter(dir => fs.existsSync(dir)));
223223
return this._super(new MergeTrees([ tree, dummyAppFiles, addonFiles ]));
224224
},
225225

0 commit comments

Comments
 (0)