Skip to content

Commit

Permalink
fix: set tempDir outside package root
Browse files Browse the repository at this point in the history
package root can be read-only when install strategies like PnP are used, so the tempDir needs to be outside the vitepress package itself

close vuejs#435
  • Loading branch information
jonaskuske authored Nov 9, 2021
1 parent ea6cb00 commit d50a2e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
LocaleConfig,
createLangDictionary
} from './shared'
import { resolveAliases, APP_PATH, DEFAULT_THEME_PATH } from './alias'
import { resolveAliases, DEFAULT_THEME_PATH } from './alias'
import { MarkdownOptions } from './markdown/markdown'
import _debug from 'debug'

Expand Down Expand Up @@ -122,7 +122,7 @@ export async function resolveConfig(
pages,
configPath,
outDir: resolve(root, 'dist'),
tempDir: path.resolve(APP_PATH, 'temp'),
tempDir: resolve(root, '.tmp'),
markdown: userConfig.markdown,
alias: resolveAliases(themeDir),
vue: userConfig.vue,
Expand Down

0 comments on commit d50a2e6

Please sign in to comment.