diff --git a/plugin/src/helpers/cache.ts b/plugin/src/helpers/cache.ts index 0c48f14e..09313234 100644 --- a/plugin/src/helpers/cache.ts +++ b/plugin/src/helpers/cache.ts @@ -1,7 +1,5 @@ import path from 'path' -import { existsSync, readdirSync } from 'fs-extra' - import { getGatsbyRoot } from './config' function getCacheDirs(publish) { @@ -29,13 +27,6 @@ export async function restoreCache({ publish, utils }): Promise { } else { console.log('No Gatsby cache found. Building fresh.') } - cacheDirs.forEach((dir) => { - if (!existsSync(dir)) { - return - } - const dirInfo = readdirSync(dir) - console.log(dir, dirInfo) - }) } export function normalizedCacheDir(publish: string): string {