Skip to content

Commit a267b4a

Browse files
remingtonculivz
authored andcommitted
refactor: fs.remove -> fs.emptyDir (#1030)
1 parent 59eaa6a commit a267b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/@vuepress/core/lib/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = async function build (sourceDir, cliOptions = {}) {
2323
return console.error(logger.error(chalk.red('Unexpected option: outDir cannot be set to the current working directory.\n'), false))
2424
}
2525

26-
await fs.remove(outDir)
26+
await fs.emptyDir(outDir)
2727
logger.debug('Dist directory: ' + chalk.gray(outDir))
2828

2929
let clientConfig = createClientConfig(ctx, cliOptions).toConfig()

0 commit comments

Comments
 (0)