Skip to content

Commit d513f7c

Browse files
committed
refactor(core): do not empty temp directory
1 parent 752d725 commit d513f7c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/@vuepress/core/src/app/createAppWriteTemp.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ import type { App, AppWriteTemp } from '../types'
55
* Create write temp file util for vuepress app
66
*/
77
export const createAppWriteTemp = async (app: App): Promise<AppWriteTemp> => {
8-
const dirTemp = app.dir.temp()
9-
10-
// TODO: add flag to control empty temp directory or not
11-
// TODO: check if temp dir is safe to empty
12-
// empty temp directory
13-
await fs.emptyDir(dirTemp)
14-
15-
// TODO: temp cache from files
168
const tempCache = new Map<string, string>()
179

1810
const writeTemp: AppWriteTemp = async (file: string, content: string) => {

0 commit comments

Comments
 (0)