specify the current working directory in which to run the yarn command

This commit is contained in:
Fabio Berger
2017-11-17 13:24:36 -05:00
parent 2e368b50eb
commit 50dc1d3db3

View File

@@ -34,7 +34,12 @@ getLatestTagAndVersionAsync(subPackageName)
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 + '/..');
return execAsync(
'yarn typedoc --excludePrivate --excludeExternals --target ES5 --json ' + __dirname + '/../docs/index.json ' + __dirname + '/..',
{
cwd: __dirname + '/..',
}
);
})
.then(function(result) {
if (result.stderr !== '') {