There was an error while loading. Please reload this page.
1 parent ba09df7 commit 0fa610fCopy full SHA for 0fa610f
1 file changed
packages/rstack/src/fmt/discoverPaths.ts
@@ -296,7 +296,7 @@ const classifyPatterns = async (
296
297
const stats = await lstatSafe(filePath);
298
if (stats?.isFile()) {
299
- return { kind: 'file', value: filePath };
+ return isBinaryPath(filePath) ? undefined : { kind: 'file', value: filePath };
300
}
301
if (stats?.isDirectory()) {
302
return { kind: 'directory', value: filePath };
@@ -436,10 +436,6 @@ const discoverFmtPaths = async ({
436
const filePaths: string[] = [];
437
438
for (const filePath of candidates) {
439
- if (isBinaryPath(filePath)) {
440
- continue;
441
- }
442
-
443
if (negativeGlobMatchers.length) {
444
const relativePath = toPosixPath(path.relative(cwd, filePath));
445
if (negativeGlobMatchers.some((matches) => matches(relativePath))) {
0 commit comments