Instead of adding @0xproject/types to tsconfig.json, let's only add it when calling TypeDoc

This commit is contained in:
Fabio Berger
2018-03-03 21:34:13 +01:00
parent 49a4f0c74c
commit 839e5895e4
8 changed files with 33 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
const _ = require('lodash');
const execAsync = require('async-child-process').execAsync;
const semverSort = require('semver-sort');
const publishRelease = require('publish-release');
@@ -61,5 +62,15 @@ module.exports = {
throw err;
});
},
adjustFileIncludePaths: function(fileIncludes, cwd) {
const fileIncludesAdjusted = _.map(fileIncludes, fileInclude => {
if (_.startsWith(fileInclude, '../')) {
return cwd + '/../' + fileInclude;
} else if (_.startsWith('./')) {
return cwd + '/../' + fileInclude;
}
});
return fileIncludesAdjusted;
},
generatedDocsDirectoryName,
};