Skip to content

Commit

Permalink
Fix: rimraf calls not getting resolved correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Jan 18, 2024
1 parent 6194553 commit 21d9a15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -276,7 +276,8 @@ const runCommand = async (command, additionalArgs) =>
}
case Command.Clean: {
await spawn('rimraf', [
'{dist,lib}/*',
'dist',
'lib',
...extensionConfig.clean,
]);
break;
Expand Down

0 comments on commit 21d9a15

Please sign in to comment.