Use yarn docs:json command

This commit is contained in:
Fabio Berger
2017-11-17 13:30:26 -05:00
parent 2c055db0d7
commit e70c3976db
2 changed files with 3 additions and 3 deletions

View File

@@ -14,6 +14,7 @@
"scripts": { "scripts": {
"prebuild": "npm run clean", "prebuild": "npm run clean",
"build": "run-p build:umd:prod build:commonjs; exit 0;", "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", "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:circleci": "run-s test:coverage report_test_coverage; if [ $CIRCLE_BRANCH = \"development\" ]; then yarn test:umd; fi",
"test": "run-s clean test:commonjs", "test": "run-s clean test:commonjs",

View File

@@ -33,9 +33,8 @@ getLatestTagAndVersionAsync(subPackageName)
.then(function(release) { .then(function(release) {
console.log('POSTPUBLISH: Release successful, generating docs...'); console.log('POSTPUBLISH: Release successful, generating docs...');
// return typedocApp.generateDocs([rootDir], __dirname + '/../docs/index.json');
return execAsync( return execAsync(
'yarn typedoc --excludePrivate --excludeExternals --target ES5 --json ' + __dirname + '/../docs/index.json ' + __dirname + '/..', 'yarn docs:json ' + __dirname + '/../docs/index.json ' + __dirname + '/..',
{ {
cwd: __dirname + '/..', cwd: __dirname + '/..',
} }