We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a78b7 commit 77d06efCopy full SHA for 77d06ef
generate_docs.js
@@ -22,8 +22,8 @@ const TS_CONFIG = JSON.parse(fs.readFileSync('./tsconfig.json'));
22
const TYPEDOC_CONFIG = JSON.parse(fs.readFileSync('./typedoc.json'));
23
const PACKAGE_DIR = process.cwd();
24
const DOWNSTREAM_CACHE = path.join(PACKAGE_DIR, '.downstream_cache');
25
-const TEMP = tmp.dirSync();
26
-const DOCGEN_DIR = TEMP.name;
+const IS_TRAVIS = !!process.env.TRAVIS;
+const DOCGEN_DIR = IS_TRAVIS ? path.join('~', '.docgen') ? tmp.dirSync().name;
27
const DOCGEN_PACKAGE_DIR = path.join(DOCGEN_DIR, kebob(PACKAGE_JSON.name));
28
29
const requiredKeys = [ 'typedoc', 'typedoc.generateOptions' ];
0 commit comments