Instead of adding @0xproject/types
to tsconfig.json, let's only add it when calling TypeDoc
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user