fix: add missing dependency typedoc

Fixes #5
This commit is contained in:
Anselm Stordeur
2019-01-09 15:17:05 +01:00
parent a2bd0d113b
commit b248d1b5e0
7 changed files with 90 additions and 87 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 StApps
* Copyright (C) 2018-2019 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -129,7 +129,13 @@ export function getProjectReflection(srcPath: PathLike): ProjectReflection {
const inputFiles = app.expandInputFiles([srcPath.toString()]);
// get project reflection from input files
return app.convert(inputFiles);
const result = app.convert(inputFiles);
if (typeof result === 'undefined') {
throw new Error('Project reflection could not be generated.');
}
return result;
}
/**