diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-04 04:44:44 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-04 04:44:44 +0800 |
commit | df4db8fa4c19d2ef0a311d201061ba732ce0eb97 (patch) | |
tree | e5fcbc5612296eaa8b368c264259001e0172e4f1 /packages/connect/scripts/postpublish.js | |
parent | e11e26a35274a96fd2d4b7f37e60b89220115994 (diff) | |
parent | bd85fe0af3ce201710f92b995cf25dfc96fba953 (diff) | |
download | dexon-0x-contracts-df4db8fa4c19d2ef0a311d201061ba732ce0eb97.tar.gz dexon-0x-contracts-df4db8fa4c19d2ef0a311d201061ba732ce0eb97.tar.zst dexon-0x-contracts-df4db8fa4c19d2ef0a311d201061ba732ce0eb97.zip |
Merge branch '0x.js/updateTypeDoc' into extractDocs
* 0x.js/updateTypeDoc:
Fix comments
Add comments
Don't need any external packages for 0x connect docs yet
Instead of adding `@0xproject/types` to tsconfig.json, let's only add it when calling TypeDoc
Fix styling
Make prettier ignore postpublish_utils
Update yarn.lock
Diffstat (limited to 'packages/connect/scripts/postpublish.js')
-rw-r--r-- | packages/connect/scripts/postpublish.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/connect/scripts/postpublish.js b/packages/connect/scripts/postpublish.js index 01c349cb8..e447615f9 100644 --- a/packages/connect/scripts/postpublish.js +++ b/packages/connect/scripts/postpublish.js @@ -1,10 +1,16 @@ const execAsync = require('async-child-process').execAsync; const postpublish_utils = require('../../../scripts/postpublish_utils'); const packageJSON = require('../package.json'); +const tsConfig = require('../tsconfig.json'); const cwd = __dirname + '/..'; const subPackageName = packageJSON.name; const S3BucketPath = 's3://connect-docs-jsons/'; +// Include any external packages that are part of the @0xproject/connect public interface +// to this array so that TypeDoc picks it up and adds it to the Docs JSON +const fileIncludes = [...tsConfig.include]; +const fileIncludesAdjusted = postpublish_utils.adjustFileIncludePaths(fileIncludes, __dirname); +const projectFiles = fileIncludesAdjusted.join(' '); let tag; let version; @@ -19,7 +25,7 @@ postpublish_utils .then(function(release) { console.log('POSTPUBLISH: Release successful, generating docs...'); const jsonFilePath = __dirname + '/../' + postpublish_utils.generatedDocsDirectoryName + '/index.json'; - return execAsync('JSON_FILE_PATH=' + jsonFilePath + ' yarn docs:json', { + return execAsync('JSON_FILE_PATH=' + jsonFilePath + ' PROJECT_FILES="' + projectFiles + '" yarn docs:json', { cwd, }); }) |