From 4b25d1bf0b93eacb3bc3efa9da5f2badb2c3dae7 Mon Sep 17 00:00:00 2001 From: hemengke <23536175@qq.com> Date: Sat, 25 May 2024 18:42:08 +0800 Subject: [PATCH] fix: windows path fix --- src/node/processor/FileCacheProcessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/processor/FileCacheProcessor.ts b/src/node/processor/FileCacheProcessor.ts index ea53b43..348ef11 100644 --- a/src/node/processor/FileCacheProcessor.ts +++ b/src/node/processor/FileCacheProcessor.ts @@ -65,7 +65,7 @@ export class FileCacheProcessor extends ManifestCacheProcessor { const jsFilePath = this.setCache(args, globalConfig.all) - fs.ensureDirSync(normalizePath(path.dirname(jsFilePath))) + fs.ensureDir(path.dirname(normalizePath(jsFilePath))) writeFile(jsFilePath, code) }