aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-18 02:30:26 +0800
committerFabio Berger <me@fabioberger.com>2017-11-18 02:30:26 +0800
commite70c3976db61bfe2038b0d56ea196412215aae4f (patch)
tree86f9ca4f9fcc65af4760e0b1264c4487f2021c56
parent2c055db0d702692d29c746fb60832ad88c04d90d (diff)
downloaddexon-sol-tools-e70c3976db61bfe2038b0d56ea196412215aae4f.tar
dexon-sol-tools-e70c3976db61bfe2038b0d56ea196412215aae4f.tar.gz
dexon-sol-tools-e70c3976db61bfe2038b0d56ea196412215aae4f.tar.bz2
dexon-sol-tools-e70c3976db61bfe2038b0d56ea196412215aae4f.tar.lz
dexon-sol-tools-e70c3976db61bfe2038b0d56ea196412215aae4f.tar.xz
dexon-sol-tools-e70c3976db61bfe2038b0d56ea196412215aae4f.tar.zst
dexon-sol-tools-e70c3976db61bfe2038b0d56ea196412215aae4f.zip
Use `yarn docs:json` command
-rw-r--r--packages/0x.js/package.json1
-rw-r--r--packages/0x.js/scripts/postpublish.js5
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/package.json b/packages/0x.js/package.json
index 61039a8c0..10ace5529 100644
--- a/packages/0x.js/package.json
+++ b/packages/0x.js/package.json
@@ -14,6 +14,7 @@
"scripts": {
"prebuild": "npm run clean",
"build": "run-p build:umd:prod build:commonjs; exit 0;",
+ "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $1 $2",
"lint": "tslint src/**/*.ts test/**/*.ts",
"test:circleci": "run-s test:coverage report_test_coverage; if [ $CIRCLE_BRANCH = \"development\" ]; then yarn test:umd; fi",
"test": "run-s clean test:commonjs",
diff --git a/packages/0x.js/scripts/postpublish.js b/packages/0x.js/scripts/postpublish.js
index 3f0502c64..1ec0ac258 100644
--- a/packages/0x.js/scripts/postpublish.js
+++ b/packages/0x.js/scripts/postpublish.js
@@ -28,14 +28,13 @@ getLatestTagAndVersionAsync(subPackageName)
reuseRelease: true,
reuseDraftOnly: false,
assets: [__dirname + '/../_bundles/index.js', __dirname + '/../_bundles/index.min.js'],
- });
+ });
})
.then(function(release) {
console.log('POSTPUBLISH: Release successful, generating docs...');
- // return typedocApp.generateDocs([rootDir], __dirname + '/../docs/index.json');
return execAsync(
- 'yarn typedoc --excludePrivate --excludeExternals --target ES5 --json ' + __dirname + '/../docs/index.json ' + __dirname + '/..',
+ 'yarn docs:json ' + __dirname + '/../docs/index.json ' + __dirname + '/..',
{
cwd: __dirname + '/..',
}