From 35e8310e525ce709430dff38d6db2b0034a9bcf1 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Thu, 1 Sep 2022 19:58:19 +0800 Subject: [PATCH] Fix bad stat --- scripts/next-repro-generators/publish.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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