diff --git a/aio/tools/transforms/authors-package/index.js b/aio/tools/transforms/authors-package/index.js index cfb5dac96a..bfd523e008 100644 --- a/aio/tools/transforms/authors-package/index.js +++ b/aio/tools/transforms/authors-package/index.js @@ -51,6 +51,10 @@ module.exports = { generateDocs: function(changedFile, options = {}) { const {Dgeni} = require('dgeni'); const package = createPackage(changedFile); + if (package === undefined) { + console.log('The changed file was not matched to a dgeni package - skipping doc-gen'); + return Promise.resolve(); + } if (options.silent) { package.config(function(log) { log.level = 'error'; }); }