Refactor: Bun.peek polyfill for Node.js

This commit is contained in:
SukkaW
2024-07-23 15:46:38 +08:00
parent eed0d58697
commit b1481c87f2
6 changed files with 20 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ export const downloadPreviousBuild = task(import.meta.main, import.meta.path)(as
buildOutputList.push(line);
if (!isCI) {
// Bun.file().exists() doesn't check directory
if (!existsSync(path.join(import.meta.dir, '..', line))) {
flag = flag & ~ALL_FILES_EXISTS;
}