From a4b7758a0047ac81dedb0df27403d24be9fe83e8 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 6 Jan 2022 12:26:17 +0800 Subject: [PATCH] chore: tweak temp dir name --- src/node/config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/node/config.ts b/src/node/config.ts index 3080395dfb23..7a01377b20b6 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -106,7 +106,9 @@ export async function resolveConfig( const [userConfig, configPath] = await resolveUserConfig(root, command, mode) const site = await resolveSiteData(root, userConfig) const srcDir = path.resolve(root, userConfig.srcDir || '.') - const outDir = userConfig.outDir ? path.resolve(root, userConfig.outDir) : resolve(root, 'dist') + const outDir = userConfig.outDir + ? path.resolve(root, userConfig.outDir) + : resolve(root, 'dist') // resolve theme path const userThemeDir = resolve(root, 'theme') @@ -135,7 +137,7 @@ export async function resolveConfig( pages, configPath, outDir, - tempDir: resolve(root, '.tmp'), + tempDir: resolve(root, '.temp'), markdown: userConfig.markdown, alias: resolveAliases(themeDir), vue: userConfig.vue,