aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-04 04:34:13 +0800
committerFabio Berger <me@fabioberger.com>2018-03-04 04:34:13 +0800
commit839e5895e41c849d69b493ad2a1e85c8504c38b2 (patch)
tree5b2c81cbf7073caab0df7fd8d078cb8713bd6e63 /scripts
parent49a4f0c74c5578abf4b64ea2ed36f4821af10f9f (diff)
downloaddexon-0x-contracts-839e5895e41c849d69b493ad2a1e85c8504c38b2.tar.gz
dexon-0x-contracts-839e5895e41c849d69b493ad2a1e85c8504c38b2.tar.zst
dexon-0x-contracts-839e5895e41c849d69b493ad2a1e85c8504c38b2.zip
Instead of adding `@0xproject/types` to tsconfig.json, let's only add it when calling TypeDoc
Diffstat (limited to 'scripts')
-rw-r--r--scripts/postpublish_utils.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/postpublish_utils.js b/scripts/postpublish_utils.js
index e67d4d896..6f990eb5e 100644
--- a/scripts/postpublish_utils.js
+++ b/scripts/postpublish_utils.js
@@ -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,
};