Skip to content

Commit

Permalink
feat: don't nuke the entire docs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Apr 4, 2023
1 parent 243568e commit a260c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/sf-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ try {

let outDir = 'docs';

shell.rm('-rf', `${outDir}/*`);
// preserve perf test files, which are also stored in gh-pages
shell.exec(`find ./${outDir} -not -path './${outDir}/perf*' -delete`);

outDir = join(packageRoot, outDir, 'tmp');

let command = `yarn typedoc --out ${outDir}`;
Expand Down

0 comments on commit a260c46

Please sign in to comment.