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;