Skip to content

Commit 8ef8fa5

Browse files
committed
Add a check to see if packageJson.apidoc was defined.
1 parent b0f49e8 commit 8ef8fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/package_info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PackageInfo.prototype.get = function() {
4444
// replace header footer with file contents
4545
_.extend(result, this._getHeaderFooter(result));
4646

47-
if (Object.keys(apidocJson).length === 0)
47+
if (Object.keys(apidocJson).length === 0 && ! packageJson.apidoc)
4848
app.log.warn('Please create an apidoc.json.');
4949

5050
return result;

0 commit comments

Comments
 (0)