Skip to content

Commit 7a5fdef

Browse files
committed
chore: maybe fix CI for windows
1 parent d8ac445 commit 7a5fdef

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/build-cli-bundles.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="@types/bun" />
22

3+
import { rm } from 'node:fs/promises';
34
import { basename } from 'node:path';
45

56
import { $, fileURLToPath } from 'bun';
@@ -13,6 +14,8 @@ const entryPoints = [
1314
fileURLToPath(new URL('../src/entrypoints/apify.ts', import.meta.url)),
1415
];
1516

17+
await rm(new URL('../bundles/', import.meta.url), { recursive: true, force: true });
18+
1619
for (const entryPoint of entryPoints) {
1720
const cliName = basename(entryPoint, '.ts');
1821

src/lib/commands/read-stdin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ export async function readStdin(stdinStream: typeof process.stdin = process.stdi
2323
}
2424

2525
// Right now, Windows always returns false for isFIFO, so we have to check for that manually
26+
// Windows might also wrongly return the mode for this, who knows!
2627
// TODO: https://github.com/nodejs/node/issues/57603
2728
if (process.platform === 'win32') {
2829
// eslint-disable-next-line no-bitwise
2930
if ((stat.mode & constants.S_IFIFO) === constants.S_IFIFO) {
30-
return true;
31+
return 100;
3132
}
3233
}
3334

0 commit comments

Comments
 (0)