Skip to content

Commit

Permalink
chore: tweak temp dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 6, 2022
1 parent 4cec660 commit a4b7758
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a4b7758

Please sign in to comment.