Skip to content

Commit f10ca7b

Browse files
fix(generate_docs): clean up temp directory
1 parent dd785fe commit f10ca7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

generate_docs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ if (missing) {
3737
shelljs.mkdir('-p', DOCGEN_PACKAGE_DIR);
3838
// Register hook to cleanup temp dir
3939
nodeCleanup(() => {
40-
// const symlinks = fs.readdirSync(DOCGEN_DIR)
41-
// .filter(file => fs.lstatSync(file).isSymbolicLink());
42-
// symlinks.forEach(file => fs.unlinkSync(file));
43-
// shelljs.rm('-rf', DOCGEN_DIR);
40+
const symlinks = fs.readdirSync(DOCGEN_DIR)
41+
.filter(file => fs.lstatSync(file).isSymbolicLink());
42+
symlinks.forEach(file => fs.unlinkSync(file));
43+
shelljs.rm('-rf', DOCGEN_DIR);
4444
});
4545

4646
// Fetch all included packages (i.e., core module) to .downstream_cache

0 commit comments

Comments
 (0)