Skip to content

Commit 77d06ef

Browse files
feat(generate_docs): Attempt to fix travis: use ~/.docgen instead of temp dir
1 parent c2a78b7 commit 77d06ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate_docs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const TS_CONFIG = JSON.parse(fs.readFileSync('./tsconfig.json'));
2222
const TYPEDOC_CONFIG = JSON.parse(fs.readFileSync('./typedoc.json'));
2323
const PACKAGE_DIR = process.cwd();
2424
const DOWNSTREAM_CACHE = path.join(PACKAGE_DIR, '.downstream_cache');
25-
const TEMP = tmp.dirSync();
26-
const DOCGEN_DIR = TEMP.name;
25+
const IS_TRAVIS = !!process.env.TRAVIS;
26+
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

2929
const requiredKeys = [ 'typedoc', 'typedoc.generateOptions' ];

0 commit comments

Comments
 (0)