Skip to content

Commit

Permalink
fix: set tempDir outside package root (#439)
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 #435
  • Loading branch information
jonaskuske authored Jan 6, 2022
1 parent ae029ae commit bd35451
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 @@ -17,7 +17,7 @@ import {
createLangDictionary,
DefaultTheme
} 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 @@ -133,7 +133,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 bd35451

Please sign in to comment.