Skip to content

Commit

Permalink
Fix bad stat
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Sep 1, 2022
1 parent 251144f commit 35e8310
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/next-repro-generators/publish.ts
Expand Up @@ -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
Expand Down

0 comments on commit 35e8310

Please sign in to comment.