Skip to content

Commit bd35451

Browse files
authored
fix: set tempDir outside package root (#439)
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
1 parent ae029ae commit bd35451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
createLangDictionary,
1818
DefaultTheme
1919
} from './shared'
20-
import { resolveAliases, APP_PATH, DEFAULT_THEME_PATH } from './alias'
20+
import { resolveAliases, DEFAULT_THEME_PATH } from './alias'
2121
import { MarkdownOptions } from './markdown/markdown'
2222
import _debug from 'debug'
2323

@@ -133,7 +133,7 @@ export async function resolveConfig(
133133
pages,
134134
configPath,
135135
outDir: resolve(root, 'dist'),
136-
tempDir: path.resolve(APP_PATH, 'temp'),
136+
tempDir: resolve(root, '.tmp'),
137137
markdown: userConfig.markdown,
138138
alias: resolveAliases(themeDir),
139139
vue: userConfig.vue,

0 commit comments

Comments
 (0)