fix(web): render draft PRs in gray (#9537)

This commit is contained in:
Exotic authored and GitHub committed 2026-09-04 02:17:18 -04:00
1 parent 5cc369b7eb
commit caab2fdbac
30 files changed
+152 -36

No files matched your search

+16 -1
View File
@@ -2863,7 +2863,7 @@ export const packWindowsServerAsar = Effect.fn("packWindowsServerAsar")(function
readonly arch: typeof BuildArch.Type;
}) {
const fs = yield* FileSystem.FileSystem;
yield* Effect.tryPromise({
const archiveStream = yield* Effect.tryPromise({
try: () =>
createPackageWithOptions(input.sourceDir, input.asarPath, {
dot: true,
@@ -2872,6 +2872,21 @@ export const packWindowsServerAsar = Effect.fn("packWindowsServerAsar")(function
}),
catch: (cause) => new WindowsServerSidecarPackError({ asarPath: input.asarPath, cause }),
});
yield* Effect.tryPromise({
try: () =>
new Promise<void>((resolve, reject) => {
const stream = archiveStream as NodeJS.WritableStream & {
readonly writableFinished?: boolean;
};
if (stream.writableFinished === true) {
resolve();
return;
}
stream.once("finish", resolve);
stream.once("error", reject);
}),
catch: (cause) => new WindowsServerSidecarPackError({ asarPath: input.asarPath, cause }),
});
const unpackedDirPath = `${input.asarPath}.unpacked`;
if (!(yield* fs.exists(unpackedDirPath))) {
return yield* new WindowsServerSidecarPackError({