From bd35451ed42d7b5c47e2b49a7e659807cd7d7a0c Mon Sep 17 00:00:00 2001 From: Jonas <30421456+jonaskuske@users.noreply.github.com> Date: Thu, 6 Jan 2022 04:19:24 +0100 Subject: [PATCH] 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 --- src/node/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/config.ts b/src/node/config.ts index 19130e8a70c9..e956bbb48881 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -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' @@ -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,