From 21d9a15e114b1d981193f2847219153c94f29288 Mon Sep 17 00:00:00 2001 From: Matt Karl Date: Thu, 18 Jan 2024 16:48:19 -0500 Subject: [PATCH] Fix: rimraf calls not getting resolved correctly --- lib/index.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.mjs b/lib/index.mjs index bc8a951..13fdeca 100755 --- a/lib/index.mjs +++ b/lib/index.mjs @@ -176,7 +176,7 @@ const serve = async () => const docs = async () => { // Clear the current docs - await spawn('rimraf', [`${extensionConfig.docsDestination}/*`]); + await spawn('rimraf', [extensionConfig.docsDestination]); const templateConfig = path.join(__dirname, 'configs/webdoc.json'); const webdocConfig = path.join(process.cwd(), '.webdoc.json'); @@ -276,7 +276,8 @@ const runCommand = async (command, additionalArgs) => } case Command.Clean: { await spawn('rimraf', [ - '{dist,lib}/*', + 'dist', + 'lib', ...extensionConfig.clean, ]); break;