diff --git a/scripts/next-repro-generators/publish.ts b/scripts/next-repro-generators/publish.ts index 2c552bac386f..5dbca3e6fb4c 100755 --- a/scripts/next-repro-generators/publish.ts +++ b/scripts/next-repro-generators/publish.ts @@ -34,7 +34,9 @@ const publish = async (options: PublishOptions & { tmpFolder: string }) => { // otherwise old files will stick around and result inconsistent states logger.log(`🗑 Delete existing template dirs from clone`); const files = await Promise.all( - (await readdir(REPROS_DIRECTORY)).map(async (f) => ({ path: f, stats: await stat(f) })) + ( + await readdir(REPROS_DIRECTORY) + ).map(async (f) => ({ path: f, stats: await stat(join(REPROS_DIRECTORY, f)) })) ); await Promise.all( files