Skip to content

Commit efbacab

Browse files
committed
only use cpSync
1 parent e0dbf2e commit efbacab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cloudflare/src/cli/commands/populate-cache.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ function populateStaticAssetsIncrementalCache(options: BuildOptions) {
161161
const assets = getCacheAssetPaths(options);
162162
for (const { fsPath, destPath } of tqdm(assets)) {
163163
const outputDestPath = path.join(options.outputDir, "assets", STATIC_ASSETS_CACHE_DIR, destPath);
164-
mkdirSync(path.dirname(outputDestPath), { recursive: true });
165-
cpSync(fsPath, outputDestPath);
164+
cpSync(fsPath, outputDestPath, { recursive: true });
166165
}
167166
logger.info(`Successfully populated static assets cache with ${assets.length} assets`);
168167
}

0 commit comments

Comments
 (0)