Skip to content

Commit 404ecbf

Browse files
feat(generate_docs): Attempt to fix travis: use ~/.docgen instead of temp dir
1 parent 2d3107e commit 404ecbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generate_docs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ const IS_TRAVIS = !!process.env.TRAVIS;
2626
const DOCGEN_DIR = IS_TRAVIS ? path.join('~', '.docgen') : tmp.dirSync().name;
2727
const DOCGEN_PACKAGE_DIR = path.join(DOCGEN_DIR, kebob(PACKAGE_JSON.name));
2828

29+
if (IS_TRAVIS) {
30+
fs.mkdirSync(path.join('~', '.docgen'));
31+
}
32+
2933
const requiredKeys = [ 'typedoc', 'typedoc.generateOptions' ];
3034
const missing = requiredKeys.find(key => !has(TYPEDOC_CONFIG, key));
3135
if (missing) {

0 commit comments

Comments
 (0)