Skip to content

Commit a8e21a7

Browse files
committed
revert
1 parent 3cf50b2 commit a8e21a7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/play.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import mri from "mri";
22
import chalk from "chalk";
3-
import { fileURLToPath } from "node:url";
3+
import { fileURLToPath, pathToFileURL } from "node:url";
44
import * as fs from "node:fs/promises";
55
import * as fsSync from "node:fs";
66
import * as crypto from "node:crypto";
@@ -475,8 +475,8 @@ async function getLastModifiedEntryName(
475475

476476
return entries.sort((a, b) => {
477477
return (
478-
fsSync.statSync(new URL(b.name, dir)).mtimeMs -
479-
fsSync.statSync(new URL(a.name, dir)).mtimeMs
478+
fsSync.statSync(new URL(b.name, pathToFileURL(b.path))).mtimeMs -
479+
fsSync.statSync(new URL(a.name, pathToFileURL(a.path))).mtimeMs
480480
);
481481
})[0].name;
482482
}

0 commit comments

Comments
 (0)