From a260c460a0d5195083e4e14a51b991ccb8e849dc Mon Sep 17 00:00:00 2001 From: mshanemc Date: Tue, 4 Apr 2023 14:51:50 -0500 Subject: [PATCH] feat: don't nuke the entire docs directory --- bin/sf-docs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/sf-docs.js b/bin/sf-docs.js index 171e2dea..53b03972 100755 --- a/bin/sf-docs.js +++ b/bin/sf-docs.js @@ -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}`;